# date_extentions

> Date extentions

Latest version **1.0.21** (published 2022-09-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install date_extentions
pnpm add date_extentions
yarn add date_extentions
bun add date_extentions
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.21 |
| Published | 2022-09-15 |
| First published | 2022-07-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yzeek |
| Keywords | date, formats |

## Links

- npm: https://www.npmjs.com/package/date_extentions
- Repository: https://github.com/yzeek/date-extended-formats
- Homepage: https://github.com/yzeek/date-extended-formats#readme
- Issues: https://github.com/yzeek/date-extended-formats/issues
- npm.io page: https://npm.io/package/date_extentions

## 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.21 (latest) — 2022-09-15
- 1.0.20 — 2022-09-15
- 1.0.19 — 2022-09-14
- 1.0.18 — 2022-09-14
- 1.0.17 — 2022-09-14
- 1.0.16 — 2022-09-14
- 1.0.15 — 2022-08-07
- 1.0.14 — 2022-07-23
- 1.0.13 — 2022-07-19
- 1.0.12 — 2022-07-12
- 1.0.11 — 2022-07-11
- 1.0.10 — 2022-07-10
- 1.0.9 — 2022-07-10
- 1.0.7 — 2022-07-10
- 1.0.6 — 2022-07-10
- … 5 more at https://npm.io/package/date_extentions/versions

## README

# Date utils

### Easy Date formatting and date creation utilities to streamline working with dates.

---

\
_to Format dates import the formats enum_

```javascript
import { Formats } from "date_extentions/lib/FormatesEnum";
```

`
format to any of the available formats

```javascript

let newDate = new Date();
newDate.toFormat(Formats['YYYY-MM-DD HH:MM']))

```

to create dates from formatted strings:

---

```javascript

import { ExtendDate } from 'date_extentions/lib/ExtendDate'
import { Formats } from 'date_extentions/lib/FormatsEnum';

...
const dateString = '2022-07-29';
const newDate = ExtendDate.dateFrom( dateString, Formats['YYYY-MM-DD']);

```

### avilable formats:

- YYYY-MM-DD
- MM/DD/YY
- YY/MM/DD
- DD/MM/YY
- YYYY-MMDDTHH:MM:SS
- YYYYMMDDHHMMSS
- YYYY-MM-DD HH:MM
- YYYYMMDD

- More formats will be added with time

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