perpetual

0.0.2 • Public • Published

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"

Readme

Keywords

Package Sidebar

Install

npm i perpetual

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • banterability