Mental maths trick #5 for trading interviews

How to Work Out the Day of the Week for Any Date (The Doomsday Rule)

12 December 2004 was a Sunday, and you can work that out in your head in about ten seconds. The method is the Doomsday rule (or Doomsday algorithm), which the mathematician John Conway devised in 1973. It works for any date in the Gregorian calendar.

Three steps, with worked examples. Once it clicks you can name the weekday of a birthday, a historical event or a deadline faster than someone can open a calendar app.

The idea: one weekday that a dozen dates share

In any year, a set of easy-to-remember dates all fall on the same day of the week. Conway called that weekday the year's doomsday. Find it, and every other date is a short count away.

MonthDoomsday dateHow to remember it
January3rd (4th in a leap year)The 3rd three years in four, the 4th in the fourth
February28th (29th in a leap year)The last day of February
March14thPi Day (3/14)
April4th4/4
May9th"9-to-5 at the 7-Eleven"
June6th6/6
July11th"9-to-5 at the 7-Eleven"
August8th8/8
September5th"9-to-5 at the 7-Eleven"
October10th10/10
November7th"9-to-5 at the 7-Eleven"
December12th12/12

The even months are the easy part: 4/4, 6/6, 8/8, 10/10 and 12/12. For the odd months, Conway's phrase "I work 9-to-5 at the 7-Eleven" gives you 9 May, 5 September, 11 July and 7 November. It works in both directions, which is the whole trick.

Because doomsdays repeat every seven days, you also get free extras: 4 July, Halloween (31 October) and Boxing Day (26 December) are always doomsdays too.

01Know the century's anchor day

Each century starts from a fixed anchor day. For almost every date you will need, four are enough:

CenturyAnchor day
1800sFriday
1900sWednesday
2000sTuesday
2100sSunday

The pattern repeats every 400 years, so 1600 and 2000 share Tuesday. If you only memorise two, make them 1900s = Wednesday and 2000s = Tuesday.

It also helps to think of weekdays as numbers, counting from Sunday:

Sun0
Mon1
Tue2
Wed3
Thu4
Fri5
Sat6

Conway's nicknames lock this in: "Noneday" (Sunday), "Oneday", "Twosday", "Treblesday", "Foursday", "Fiveday" and "Six-a-day".

02Find the year's doomsday

Take the last two digits of the year (call them y) and work out three small numbers:

  1. a = how many times 12 goes into y
  2. b = the remainder after that
  3. c = how many times 4 goes into b

Add a + b + c to the century's anchor day and reduce by sevens. The answer is the year's doomsday.

doomsday≡anchor+a+b+c(mod7)\text{doomsday} \equiv \text{anchor} + a + b + c \pmod 7

In symbols, a = ⌊y / 12⌋, b = y mod 12 and c = ⌊b / 4⌋.

2004. y = 4, so a = 0, b = 4, c = 1, and the total is 5. The 2000s anchor is Tuesday (2), and 2 + 5 = 7, which reduces to 0. The doomsday for 2004 is Sunday.

1969. y = 69. 12 goes into 69 five times with 9 left over, so a = 5 and b = 9. 4 goes into 9 twice, so c = 2. The total is 16, which is 2 after removing two sevens. The 1900s anchor is Wednesday (3), and 3 + 2 = 5, so the doomsday for 1969 is Friday.

Why it works. A normal year is 52 weeks plus 1 day, so the doomsday moves forward one weekday each year, and two after a leap year. Every 12 years it shifts by 12 + 3 = 15 days, which is exactly one day once you remove two weeks. That is why the method counts in twelves.

03Count from the nearest doomsday

Take the doomsday date in the same month, then count forwards or backwards to your date. Remove whole weeks first, since they change nothing.

  • 12 December 2004. The December doomsday is the 12th, and the 2004 doomsday is Sunday. Nothing to count: Sunday.
  • 20 July 1969 (the Moon landing). The 1969 doomsday is Friday and the July doomsday is the 11th. The 20th is 9 days later, one week plus 2 days. Friday + 2 = Sunday.
  • 11 September 2001. For 2001, y = 1, so a = 0, b = 1, c = 0, and the total is 1. Tuesday + 1 = Wednesday. The September doomsday is the 5th, and the 11th is 6 days later. Wednesday + 6 = Tuesday.
  • 1 January 2000. 2000 is a leap year, so the January doomsday is the 4th. The 2000 doomsday is the century anchor itself, Tuesday. The 1st is 3 days before the 4th, so Tuesday − 3 = Saturday.

The leap-year rule only matters in January and February. A year is a leap year if it divides by 4, except century years, which must divide by 400. So 2000 was a leap year and 1900 was not.

Faster step 2

The Odd + 11 method

If dividing by 12 slows you down, Chamberlain Fong and Michael Walters published a shortcut in 2010 that gives the same result for step 2:

  1. Take y. If it is odd, add 11.
  2. Halve it.
  3. If the result is odd, add 11 again.
  4. Find the remainder after dividing by 7, then subtract it from 7.
  5. Count that many days forward from the century anchor.

1969: 69 is odd, so 80. Halve it: 40, which is even, so leave it. 40 divided by 7 leaves 5, and 7 − 5 = 2. Wednesday + 2 = Friday, the same answer as before.

Practice dates

Try these before you open the answers:

  1. 6 June 1944 (D-Day)
  2. 9 November 1989 (fall of the Berlin Wall)
  3. 25 December 2026
  4. 1 January 2050
Show the answers

Tuesday, Thursday, Friday, Saturday.

Why trading interviews care

Interviewers rarely ask for a calendar date. They do ask the same skill in disguise: "Today is Saturday. What day is it in 100 days?" Since 100 = 14 × 7 + 2, the answer is two days on, a Monday. Working in remainders of 7 (modular arithmetic) is exactly what the Doomsday rule trains.

Then put the habit against a clock in the free daily mental maths challenge: 20 questions in 2 minutes.

FAQ

How do you work out the day of the week for any date in your head?

Use the Doomsday rule: find the century's anchor day, use the last two digits of the year to find that year's doomsday, then count from the nearest doomsday date in the month, such as 4/4, 6/6, 8/8, 10/10 or 12/12.

What is the method called?

The Doomsday rule, or Doomsday algorithm, devised by the mathematician John Conway in 1973.

Does the Doomsday rule work for any year?

Yes, for any date in the Gregorian calendar. You only need the right century anchor, and the anchors repeat every 400 years.

How long does the Doomsday rule take to learn?

The steps take an evening to learn. Speed comes from knowing the doomsday dates and the 1900s and 2000s anchors without thinking.

Do I need a different rule for January and February?

Only in leap years. Use 4 January and 29 February instead of 3 January and 28 February.

Sources

Was this lesson helpful?

← All general guides