Gets the length of this month _in days.
!(p)
This takes a flag to determine whether to return the length for a leap year or not.
!(p)
February has 28 days _in a standard year and 29 days _in a leap year.
April, June, September and November have 30 days.
All other months have 31 days.
@param leapYear true if the length is required for a leap year
@return the length of this month _in days, from 28 to 31
Gets the length of this month _in days. !(p) This takes a flag to determine whether to return the length for a leap year or not. !(p) February has 28 days _in a standard year and 29 days _in a leap year. April, June, September and November have 30 days. All other months have 31 days.
@param leapYear true if the length is required for a leap year @return the length of this month _in days, from 28 to 31