TilDate is a typescript datetime library to format and parse native js Date()
- DateTime is capable of formatting using same formatter as Java
- It can Parse string using same formatter
- Added extra functionality ex: isBefore(), isAfter(), isSame()
yarn add tildate
or
npm i tildate -S
It's simple to start:
import { DateTime } from 'tildate';
// Others imports
class MyClass {
dateTime = new DateTime();
}
<!-- in html -->
{{dateTime}} // for Angular
Go checkout examples !
Document your API here
These methods do foo bar moo...
Example:
// example
How to do format
new DateTime().format('yyyy-MM-dd');How to do parse
new DateTime().parse("2012-03-12'T'12:45:34.34");MIT as always