dashed-date-format
v3.0.0
Published
This library will help you in setting up redeis server and help you in:
Downloads
6
Readme
This library will help you in setting up redeis server and help you in:
- Format the input date
- Based on input formatted the date in short/full format
Install with:
npm install dashed-date-format
let dateFormat =require('dashed-date-format')
- Accept two parameter
- first: inputDate
- second: type of format, it can have 2 values - i) 'short'- format like(YY-MM-DD) ii) 'full'- format like(YYYY-MM-DD)
- default will be full format
- return undefined, if no date is provided
dateFormat.dashedDFormat(inputDate, format) => {
//return formatted date
}