| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Get the name or number of the current month or any month of the year.
Install with npm
$ npm i month --savevar month = require('month');
month();
//=> 'January' (current month full name)
month('M');
//=> '1' (current month number)
month('MM');
//=> '01' (current month number, zero-filled)
month('MMM');
//=> 'Jan' (current month abbreviation)
month('MMMM');
//=> 'January' (current month full name)
month('January');
//=> '12' (number of the given month number)
month(1);
//=> 'January' (name of the given month number)
month(2);
//=> 'February'Install dev dependencies:
$ npm i -d && npm testPull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on May 25, 2015.
| Back | FazBrowse Home | New Git URL |