Worked example
What day was the first Moon landing, 20 July 1969? With Zeller’s congruence: q = 20, m = 7, K = 69, J = 19. Then 20 + ⌊13 × 8 ÷ 5⌋ + 69 + ⌊69 ÷ 4⌋ + ⌊19 ÷ 4⌋ + 5 × 19 = 20 + 20 + 69 + 17 + 4 + 95 = 225. 225 mod 7 = 1, and h = 1 means Sunday.
Famous dates
| Event | Date | Day |
|---|---|---|
| US Declaration of Independence | July 4, 1776 | Thursday |
| First Moon landing | July 20, 1969 | Sunday |
| Fall of the Berlin Wall | November 9, 1989 | Thursday |
| 1 January 2000 | January 1, 2000 | Saturday |
| Christmas Day 2026 | December 25, 2026 | Friday |
| 1 January 2027 | January 1, 2027 | Friday |
| 4 July 2027 | July 4, 2027 | Sunday |
The Doomsday rule in your head
Mathematician John Conway could name the weekday of any date in a couple of seconds with this trick. Each year has a “doomsday”, the weekday shared by these easy dates:
| Month | Doomsday date |
|---|---|
| January | 3 (4 in a leap year) |
| February | 28 (29 in a leap year) |
| March | 14 (Pi Day) |
| April to December | 4/4, 6/6, 8/8, 10/10, 12/12, 5/9, 9/5, 7/11, 11/7 |
The 9/5 and 7/11 pair is remembered as “I work 9 to 5 at the 7-Eleven”: 9 May and 5 September, 11 July and 7 November. In 2026 the doomsday is Saturday, so 25 December 2026 (13 days after 12/12) is Friday. The doomsday moves one day later each year, two after a leap day.
Calendars that repeat
A whole year’s calendar repeats every 6, 11 or 28 years for ordinary years, and every 28 years for leap years, as long as no century year that isn’t a leap year (like 2100) gets in the way. So a 2026 calendar works again in 2037, and the next year with the same layout as 2027 is 2038.
Why weekdays shift the way they do
Because a common year is 52 weeks and 1 day, every date moves one weekday later in the next year, and two places later when a 29 February falls in between. The Gregorian calendar repeats exactly every 400 years, which is 146,097 days, or exactly 20,871 weeks, so 26 November 2426 will fall on the same weekday as 26 November 2026. Over that 400-year cycle the 13th of the month falls on a Friday slightly more often than on any other day, a small quirk of the leap-year rule. The calculator uses the same proleptic Gregorian rules as most computer systems, so its answers match spreadsheets and calendars for every date it accepts.
Related tools
- Hours calculator
- Week number
- Online timer and stopwatch
- Pomodoro timer
- Days between dates
- Time card calculator
- Military time converter
Sources
Checked on November 26, 2026:
- NIST: A walk through time, the Gregorian calendar
- Calendar (New Style) Act 1750 (Britain’s switch in 1752)
- Zeller, C. (1886): Kalender-Formeln, Acta Mathematica 9:131–136
Frequently asked questions
What day of the week was I born?
How do you work out the day of the week by hand?
Why does a birthday move one day each year?
Does it work for very old dates?
What is the Doomsday rule?
Is the date I enter stored?
Last updated: 2026-11-26