1.0.1 • Published 2 years ago
newt-date v1.0.1
Description
this is a package used to parsing a date for noob
Installation
$ npm install newt-date
Test
const {dateParser , monthOnly, custom} = require('../index');
let date = new Date()
let date4 = dateParser( date ,'en-EN',custom('numeric','long','numeric'))
// let date2 = dateParser( date ,'fr-FR',monthOnly('short'))
// let date3 = dateParser( date ,'fr-FR',yearOnly('long'))
console.log(date4);
// response is July 18, 2022
Stay in touch
- Author - newt touky