Weekday of any date: the key-code method
Add four small codes for the day, month, year and century, keep the remainder after 7, and name the weekday of any date from 1600 to 2199.
Best for: Party trick · Birthdays · History dates · Memory sport
Why it works
Every date's weekday is the sum of four small numbers, kept mod 7. The day counts forward, the month code says where that month starts, the year code adds the yearly drift, and the century code resets every 100 years.
Formula: Weekday = (Day + Month code + Year code + Century code) mod 7. Subtract 1 for January and February of a leap year.
0 Sunday · 1 Monday · 2 Tuesday · 3 Wednesday · 4 Thursday · 5 Friday · 6 Saturday
It is fast enough for competitions: the Mental Calculation World Cup has a calendar round with random dates from 1600 to 2099, and the 2018 winner named 71 dates in one minute.
Step by step
-
Learn the 12 month codes once. Read them in groups of three: 033 · 614 · 625 · 035 (625 is 25²).
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 0 3 3 6 1 4 6 2 5 0 3 5 Give each month a picture that carries its number with Major-system sounds (1 t, 2 n, 3 m, 4 r, 5 l, 6 sh):
Month Code Picture January 0 A snowman shaped like a zero February 3 A heart wearing mittens March 3 A marching mouse April 6 An April-fool shoe May 1 A single tulip June 4 A bride holding a rose July 6 Fireworks over a ship August 2 A nap in a hammock September 5 Back to school in the library October 0 A pumpkin shaped like a zero November 3 Turkey with mashed potato December 5 A Christmas tree light -
Learn the century codes. They repeat 6, 4, 2, 0 every 400 years.
1600s 1700s 1800s 1900s 2000s 2100s 6 4 2 0 6 4 The two you will use most: 1900s = 0, 2000s = 6.
-
Work out the year code from the last two digits. Year code = (YY + YY ÷ 4, dropping the remainder) mod 7.
Year codes 69 + 17 = 86 code 217 = 69 ÷ 4 │ 86 − 84 = 226 + 6 = 32 code 46 = 26 ÷ 4 │ 32 − 28 = 400 + 0 = 0 code 0 -
Add the four codes and drop the 7s. Reduce as you go to keep numbers small: day 20 is 6, day 18 is 4.
-
Adjust for January and February of a leap year. Subtract 1. Every other date needs nothing.
-
Read the weekday from the number. 0 is Sunday, then count up.
Worked example
Write the four codes in a column, add them, and take away 7s.
Speed version of the first one: shrink the day first (20 − 14 = 6). Smaller numbers, fewer slips.
What made it work
- Four lookups, one sum. Every date uses the same routine.
- Pictures for the month codes stop you mixing up April (6) and August (2).
- Reducing early keeps every sum under 30.
Try it now
2-minute drillFind the weekday of each date with the key-code formula. Type the day (the first 3 letters are enough).
Subject examples
History: 4 July 1776
Today's news: 18 October 2026
Birthdays: a friend born 26 January 1950
1950 is not a leap year, so no adjustment.
Practice set: the 1900s
| Date | Answer |
|---|---|
| 9 November 1989 | Thursday |
| 15 April 1912 | Monday |
| 8 May 1945 | Tuesday |
| 31 December 1999 | Friday |
Practice set: every century
| Date | Answer |
|---|---|
| 1 January 1600 | Saturday |
| 1 March 1700 | Monday |
| 1 January 1800 | Wednesday |
| 1 January 1900 | Monday |
| 25 December 2100 | Saturday |
Champion track: year codes as images
Step 3 is the slowest part. Memorise the year code for 00 to 99 by turning each year into a Major-system image that holds its code (for example 69 → ship, code 2). Once the codes are instant, train for 30 or more dates per minute in the 1600–2099 competition round.
Common mistakes
- Forgetting the leap-year adjustment. Fix: ask "January or February, leap year?" before you answer. Only those two months change.
- Treating 1900 or 2100 as leap years. Fix: century years must divide by 400 (see calendar basics).
- Using 0 for the 2000s. Fix: the 2000s code is 6; only the 1900s are 0.
- Big sums. Fix: turn the day into its remainder first (day 27 → 6).
Combine with
Check any answer a second way with the Doomsday method. Keep the month codes fresh with spaced repetition, and pair the skill with remembering historical dates.
Check your understanding
Practise Weekday of any date: the key-code method every day in the Study Cup Software (Software for Memory Tools & Study Management).
Build palaces, plan your exams and track your study time. Apps for Android, iPhone and Windows are coming soon; use it free in your browser now.
Get the app