month (or Date)
year
days in a month
var num = daysInMonth();
// returns <number>
var num = daysInMonth( 2 );
// returns <number>
var num = daysInMonth( 2, 2016 );
// returns 29
var num = daysInMonth( 2, 2017 );
// returns 28
Returns the number of days in a month.
Notes
month
andyear
arguments.month
may be either a month's integer value, three letter abbreviation, or full name (case insensitive).must provide a recognized month
an integer month argument must be on the interval
[1,12]