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
- Host: GitHub
- URL: https://github.com/erfanium/datetool
- Owner: erfanium
- License: mit
- Created: 2020-08-15T12:19:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T12:26:36.000Z (over 5 years ago)
- Last Synced: 2025-03-30T11:11:32.012Z (10 months ago)
- Topics: browser, date, datetime, deno, javascript, nodejs, tool, tools, typescript, utils
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()
```