in reply to Last day of the month. Any shorter

The leapyear check could be made somewhat shorter: ($year % 4 == 0 && (($year % 100 != 0) || ($year % 400 == 0)))