def
func:numDaysInMonth
numDaysInMonth(month: null)
Get the number of days in a given month. The month parameter may be:
- Date: returns number of days in given month (uses month/year, ignores day)
- Number 1-12: returns days in month for current year
- null: returns day in current month
Examples:
numDaysInMonth() >>> days in current month numDaysInMonth(1) >>> 31day (days in January) numDaysInMonth(6) >>> 30day (days in June) numDaysInMonth(2) >>> 28day or 29day (days for Feb this year) numDaysInMonth(2012-02-13) >>> 29day (days in Feb for leap year)