Get the number of days in a month
$ npm install --save month-days
var monthDays = require('month-days');
monthDays(1, 2016);
//=> 29
Type: number
Default: current UTC month
Note that month is zero-index to be consistent with the native date methods.
Type: number
Default: current UTC year
MIT © Sindre Sorhus