aloketewary / tildate

TilDate is a typescript datetime library to format and parse native js Date()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tildate

tildate

TilDate is a typescript datetime library to format and parse native js Date()

Build Status NPM version Downloads Standard Version styled with prettier Conventional Commits


✨ 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

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");

πŸ•΅οΈ Troubleshooting

πŸ₯‚ License

MIT as always

About

TilDate is a typescript datetime library to format and parse native js Date()

License:MIT License


Languages

Language:TypeScript 100.0%