Day of the Year Calculator
Day number of a date, and the date of a day number.
Check whether any year from 1000 to 9999 is a leap year, and see the previous and next ones. The leap year calculator can also list every leap year in a range.
A Gregorian year is a leap year when:
leap = (year % 4 = 0 and year % 100 ≠ 0) or year % 400 = 0
Earth takes about 365.2422 days to go around the Sun. Adding a day every 4 years overshoots slightly, so the Gregorian calendar skips three leap days every 400 years. That keeps the average year at 365.2425 days, close enough to stay within a day of the seasons for over 3,000 years.
Yes. 2024 is divisible by 4 and is not a century year.
Century years are leap years only when divisible by 400. 1900 is not, so it had 365 days.
Enter the current year and the calculator shows the next one. After 2024, it is 2028.
Often used together with the Leap Year Calculator.
Day number of a date, and the date of a day number.
The weekday of any date, and of the same date in coming years.
Adds or subtracts a period from a date to give a new date.