1.0.1 • Published 2 years ago

newt-date v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

1.0.1

2 years ago

1.0.0

2 years ago