tildate
TypeScript icon, indicating that this package has built-in type declarations

1.0.19 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tildate

Weekly Downloads

0

Version

1.0.19

License

MIT

Unpacked Size

355 kB

Total Files

76

Last publish

Collaborators

  • allokey