Get the current day of the month, according to local time or UTC.
Install with npm
$ npm i month-day --save
var day = require('month-day');
Assuming it's 10:27 PM EST, on May 25, 2015:
day()
//=> '25'
day('UTC')
//=> '26'
Zero-fill the day (e.g. 1 => 01):
day('DD');
//=> '01'
Install dev dependencies:
$ npm i -d && npm test
Pull 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.