perpetual
v0.0.2
Published
A bad/boring/easy way to get names of days & months
Downloads
1
Readme
perpetual
Get the day or month name from a JavaScript Date, with no concern for internationalization, localization, or not polluting prototypes.
You should probably just use Moment.js.
Usage
Include the file, which will add getDayName
and getMonthName
to the Date prototype. Then you can call it like so:
var today = new Date(2014, 4, 19);
console.log(today.getDayName());
// -> "Monday"
console.log(today.getMonthName());
// -> "May"