Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hirishu10/simple-date-time

Simple and very helpful package to get the Date Time functionality
https://github.com/hirishu10/simple-date-time

am clock date datetime git hour minute nodejs npm pm react react-native second time vercel

Last synced: about 1 month ago
JSON representation

Simple and very helpful package to get the Date Time functionality

Awesome Lists containing this project

README

        

# @hirishu10/simple-date-time

> Read the Official Documentation at → [https://simpledt.netlify.app/](https://simpledt.netlify.app/)

## Changelog v.2.0.0

- Major changes for version **v.2.0.0**
- Two new **Function/Hooks** added:
- `getCustomMonth();`
- `getCustomYear();`
- ## Some flag has been added, deprecated and modified. [#ref](https://simpledt.netlify.app/docs/intro#method-and-props-configuration)
- Custom function/hook **`getCustomDTFormatter().format();`** introduced for better formatting.
- `getCustomDTFormatter(dateValue?)` - If you want to use the old date please provide an unix value inside the dateValue.
- `format(formatValue, insertCharacters?)`
- You have to pass `formatValue` ([Please read the Method and Props Config](https://simpledt.netlify.app/docs/intro#method-and-props-configuration)), Note: **\*add** space after each char.
- `insertCharacters` is totally optional, if you need to provide a character at the end of each **_formatValue_** character, you can add it.