last-date-of-month

1.0.0 • Public • Published
var lastDateOfMonth = require('last-date-of-month')
var assert = require('assert')

// January 31, 2016
assert(lastDateOfMonth(2016, 1) === 31)

// February 28, 2015
assert(lastDateOfMonth(2015, 2) === 28)

// February 29, 2016, a leap year
assert(lastDateOfMonth(2016, 2) === 29)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i last-date-of-month

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kemitchell