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'
- days: Days of the week.
- iso-week: Get the ISO week of the year.
- month: Get the name or number of the current month or any month of the year.
- months: Months of the year.
- o-clock: Simple utility for displaying the time in 12-hour clock format.
- seconds: Get the number of seconds for a minute, hour, day and week.
- weekday: Get the name and number of the current weekday. Or get the name of the… more
- week: Get the current week number.
- year: Simple utility to get the current year with 2 or 4 digits.
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.