Three century examples
1900 was divisible by 100 but not by 400, so its February had 28 days. 2000 was divisible by 400 and had 29 February. The year 2100 follows the same rule as 1900. A year such as 2024 meets the ordinary four-year rule without reaching the century exception.
Validate the input before converting it
For an input on 29 February, apply the rule before looking up the Persian equivalent. Select Gregorian as the input calendar and enter the full date. If you know only a year and month, keep that level of precision in your source record. You can convert the first and last day to show the range of possible Persian dates.
Count across the actual month boundary
From 28 February to 1 March there is one elapsed calendar day in an ordinary year and two in a leap year. For a recurring birthday or appointment, write down how the leap-day occurrence should be handled in other years. For historical documents, also find out when the Gregorian calendar was adopted in the source’s jurisdiction. A date recorded earlier may need a different conversion convention.
Count leap years in four centuries
There are 100 multiples of four in 400 years. Four of those are century years. Three century years fail the final test and the one divisible by 400 remains. That makes 97 leap years in each 400-year Gregorian cycle. Divide the total of 400 ordinary 365-day years plus 97 additional days by 400. The average Gregorian year is 365.2425 days. The calculation shows why the century exception makes a small but important difference to the long-term average.
Identify the calendar behind a historical date
The Julian rule inserts a day every four years, including a century such as 1700. Gregorian reckoning treats 1700 as an ordinary year. If you work with a letter or register, check which system the issuing jurisdiction used at the time. Histories can describe one event using different date conventions. When an editor says dates were converted to the proleptic Gregorian calendar, keep that qualification alongside the quotation. A reader looking at the original may otherwise wonder why its date does not match.
Test a program with four inputs
Choose an ordinary year such as 2023, an ordinary leap year such as 2024, a non-leap century such as 1900, and a leap century such as 2000. Write down the expected result, then try entering 29 February for each year. Watch for a system that quietly moves an invalid value into March. If an archive turns 29 February 1900 into 1 March, you can lose the evidence of what the source or the operator actually entered.
Make the recurrence rule explicit
A recurring certificate, reminder, or accounting task might mean “last day in February,” day 28, or the leap day itself. Those instructions give different results when a leap year arrives. Save the rule with a few examples so the next person can tell whether a one-day change was intentional. Where the dates are shared with another system, export a short test range containing an ordinary February and a leap February and compare the occurrences after importing it.
Reference U.S. Naval Observatory