0.1.1 • Published 9 years ago

month-day v0.1.1

Weekly downloads
82
License
MIT
Repository
github
Last release
9 years ago

month-day NPM version

Get the current day of the month, according to local time or UTC.

Install

Install with npm

$ npm i month-day --save

Usage

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'

Related projects

  • 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.

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on May 25, 2015.