Return the Gregorian month length for a month and the year that controls February.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A bare month number, YYYY-MM value, or parsed date selects a month and year, and day zero of the following month supplies its last day number. A bare 1–12 month uses the selected year or the current browser year.
2024-02
February 2024: 29 days
Billing forms choose a final valid date, date pickers size their day menu, and leap-year tests verify February.