Parameters & Returns
Parameters
Returns
Quick Summary
Returns the number of days in a given month and year.
Takes month (month number 1-12), year (year number).
Returns the number of days in the specified month, accounting for leap years.
Technical Exegesis...
Returns the number of days in the specified month, accounting for leap years. If the month is outside the valid range (1-12), returns 0. For February (month 2), returns 29 if the year is a leap year, otherwise 28. For other months, returns the standard day count.
Day counts: Jan=31, Feb=28/29, Mar=31, Apr=30, May=31, Jun=30, Jul=31, Aug=31, Sep=30, Oct=31, Nov=30, Dec=31. Uses sysIsLeapYear internally to determine February's day count. Useful for date validation and calendar generation.