Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 609 Bytes

readme.md

File metadata and controls

42 lines (23 loc) · 609 Bytes

month-days Build Status

Get the number of days in a month

Install

$ npm install --save month-days

Usage

var monthDays = require('month-days');

monthDays(1, 2016);
//=> 29

API

monthDays([month], [year])

month

Type: number
Default: current UTC month

Note that month is zero-index to be consistent with the native date methods.

year

Type: number
Default: current UTC year

License

MIT © Sindre Sorhus