Determine whether a Gregorian year contains 29 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 year is leap when divisible by four, except century years must also be divisible by 400. Passing the rule adds 29 February and raises the year from 365 to 366 days.
2024
Year 2024: IS a leap year Days in year: 366 Days in February: 29 Rule: Divisible by 4, except centuries unless also divisible by 400 2024 % 4 = 0 2024 % 100 = 24 2024 % 400 = 24 Nearby leap years: 2016, 2020, 2024, 2028, 2032
Date validators decide whether 29 February exists, billing schedules count days in a selected year, and calendar generators choose February’s length.