Year Code Trainer
Calendar Calculation Trainer  ·  Doomsday Mastery
Drill — Flash cards for memorizing the 2-digit year codes (0–6). The trainer learns which years trip you up and quizzes you on them more.
Speed Test — 60 seconds, answer as many year codes as you can. Tracks your personal best.
📅
Date Calc — Full date calculation practice. Given a random date, name the day of the week. Choose any century or drill the current year only.
📖
Reference — Look up year code groups and a pre-calculated combined code table for 1996–2056.
0
Correct
0
Streak
0
Wrong
What is the code for this year?
--
60SEC
What is the code for this year?
Press Start
Score: 0
Century Range
0
Correct
0
Streak
0
Wrong
What day of the week is this date?
--
Year Code Groups (2-digit → code 0–6)
Combined Code: 1996–2056

Century code + Year code combined. Add your month code + day number, then mod 7 for the day of the week. ★ = current year

Mastery Map
Unseen
Shaky
Learning
Good
Mastered
Most Missed Years
  • No data yet
Doomsday Lookup — What day is Doomsday for any year?

Enter any year and find its Doomsday — the day of the week that all Doomsday anchor dates fall on.

John Conway's Doomsday Algorithm

Conway's method finds the day of the week for any date by anchoring to Doomsday — a set of easy-to-remember dates that always land on the same weekday within any given year. Master the anchor dates first, then learn to calculate which weekday Doomsday falls on for any year.

These dates always fall on that year's Doomsday, no matter the year. Memorize them and you can always find a nearby foothold in any month.

The Even Months

The last day of every even month is a Doomsday.

4/4 6/6 8/8 10/10 12/12
February

The last day of February — 28th normally, 29th on a leap year.

2/28 2/29 (leap)
Pi Day & the 9-to-5

March 14 (Pi Day 3/14) and September 5 (9-to-5 at 7-Eleven).

3/14 9/5 5/9 7/11 11/7
January

Jan 3 in normal years, Jan 4 in leap years.

1/3 1/4 (leap)

The 1900s anchor is Wednesday (3). For any year in the 1900s, take the last 2 digits of the year and apply this formula:

Let y = last 2 digits of year
a = ⌊y ÷ 12⌋
b = y mod 12
c = ⌊b ÷ 4⌋
Doomsday = (3 + a + b + c) mod 7

Example — 1985: y=85, a=⌊85/12⌋=7, b=85 mod 12=1, c=⌊1/4⌋=0 → (3+7+1+0) mod 7 = 11 mod 7 = 4 = Thursday

Replace the fixed 1900s anchor (3) with the century anchor for the year in question. The pattern repeats every 400 years.

CenturyAnchor #Day
1600, 20002Tuesday
1700, 21000Sunday
1800, 22005Friday
1900, 23003Wednesday
Doomsday = (century_anchor + a + b + c) mod 7

Example — July 4, 1776: Century anchor for 1700s = 0. y=76, a=⌊76/12⌋=6, b=76 mod 12=4, c=⌊4/4⌋=1 → (0+6+4+1) mod 7 = 11 mod 7 = 4 = Thursday. Nearest Doomsday in July = 7/11. July 4 is 7 days before July 11 → Thursday − 7 = Thursday. ✓

CodeDay
0Sunday
1Monday
2Tuesday
3Wednesday
4Thursday
5Friday
6Saturday