An open API service indexing awesome lists of open source software.

https://github.com/erfanium/datetool

A typescript class tool that simplifies working with dates
https://github.com/erfanium/datetool

browser date datetime deno javascript nodejs tool tools typescript utils

Last synced: 4 months ago
JSON representation

A typescript class tool that simplifies working with dates

Awesome Lists containing this project

README

          

# DateTool
A typescript class tool that simplifies working with dates:

```ts
const expireAt: Date = DateTool.fromNow().appendDays(this.freeBillsDurationInDays).toDate()
```

```ts
const newExpireDate: Date = DateTool.fromDate(subscription.expireAt).appendDays(durationInDays).toDate()
```