Date library is a JS library which provides straight-forward, powerful functions for working with the Date Object in JavaScript. Although originally builted into JavaScript and can be called by using new Date()
, it can also be used with other objects and for other purposes. A TypeScript version will be included in the main library that should available for use automatically.
- Get the year or month first when formatting
- Get the difference between days to get a future or past day
- Retrive the current seconds, month, day or year
- Retrieve the month or year in abbrievated form
Packgae Manager
Using npm:
$ npm i @evacuatesw/date-library
Using yarn: ``$ yarn add @evacuatesw/date-library`
date javascript date object