# date-time-process

> process javascript Date type variable 'customizlly'(-_-)

Latest version **1.0.3** (published 2020-12-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install date-time-process
pnpm add date-time-process
yarn add date-time-process
bun add date-time-process
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-12-31 |
| First published | 2020-12-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alvis Lee |
| Maintainers | alvis_lee |
| Keywords | date, time, datetime, timestamp, process, format |

## Links

- npm: https://www.npmjs.com/package/date-time-process
- npm.io page: https://npm.io/package/date-time-process

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-12-31
- 1.0.2 — 2020-12-31
- 1.0.1 — 2020-12-31
- 1.0.0 — 2020-12-31

## README

# Example

**"year, month, date, hour, minute, second"** are **keywords** in the static function **format** s second argument, you can freely combine them, it will return the string as you expected. 

```javascript
const DateTimeProcess = require('date-time-process')
const datetimeString1 = DateTimeProcess.format(new Date(), 'year-month-date hour:minute:second')
const datetimeString2 = DateTimeProcess.format(new Date(), 'year/month/date hour:minute:second')
const datetimeString3 = DateTimeProcess.format(new Date(), 'year/month/date')
const datetimeString4 = DateTimeProcess.format(new Date(), 'date/month/year')
const datetimeString5 = DateTimeProcess.format(new Date(), 'date/month/year oops~')

console.log(datetimeString1, datetimeString2, datetimeString3, datetimeString4, datetimeString5)
```

---
_Source: https://npm.io/package/date-time-process · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
