0.0.2 • Published 10 years ago

perpetual v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

perpetual

Build Status

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"