1.0.5 • Published 6 years ago

day-now v1.0.5

Weekly downloads
5
License
Apache-2.0
Repository
-
Last release
6 years ago

#day-now

Day-now gets current month,day,year and displays them based on some filters.

##Usage

var today=require('day-now');
console.log(today.getCurrentDay("nz"));
// days without zeroes in front,3
console.log(today.getCurrentDay("z"));
//days with zero in front,03
console.log(today.getCurrentMonth("mnu"));
//month with its number,04
console.log(today.getCurrentMonth("mna"));
//month with its name,April
console.log(today.getCurrentDate("nm"," "));
//month name, 3 April 2018 and delimteter " "
console.log(today.getCurrentDate("us","-"));
// us system and - between, 04-03-2018
console.log(today.getCurrentDate("eu","/"));
// eu system and / between,03/04/2018

##Licence

Apache 2.0