1.0.21 • Published 2 years ago
date_extentions v1.0.21
Date utils
Easy Date formatting and date creation utilities to streamline working with dates.
\ to Format dates import the formats enum
import { Formats } from "date_extentions/lib/FormatesEnum";
` format to any of the available formats
let newDate = new Date();
newDate.toFormat(Formats['YYYY-MM-DD HH:MM']))
to create dates from formatted strings:
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
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago