@creatrix/date
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

installation

yarn add @creatrix/date
OR
npm i @creatrix/date

example

import {isDate} from '@creatrix/date';
const fromformat='YYYYMMDDHHmmss'; <!-- DEFAULT >
const const isddate=isDate(`20211109121212`,fromformat); <!-- return true-->
const const isddate=isDate(`DATE`,fromformat); <!-- return false-->
import {toDate} from '@creatrix/date';
const toformat='DD MMMM YYYY hh:mm a'; <!-- DEFAULT >
const fromformat='YYYYMMDDHHmmss'; <!-- DEFAULT >
const mytitle=toDate(`20211109121212`,toformat,fromformat); <!-- result: ۱ -->

Package Sidebar

Install

npm i @creatrix/date

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

24.9 kB

Total Files

21

Last publish

Collaborators

  • creatrixlb