number of days in month code example
Example 1: month names
["January", "Febuary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
Example 2: days in the current month
function daysInThisMonth() {
var now = new Date();
return new Date(now.getFullYear(), now.getMonth()+1, 0).getDate();
}