23maverick23
9/18/2013 - 6:17 PM

JavaScript: Return the number of days in a month

JavaScript: Return the number of days in a month

function daysInMonth(iMonth, iYear) {
    return new Date(iYear, iMonth, 0).getDate();
}