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