Skip to content
Study CupPowered by Tayari Sensei

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.

Intermediate

Best for: Party trick · Birthdays · History dates · Memory sport

mod 7= Sunday

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

  1. Learn the 12 month codes once. Read them in groups of three: 033 · 614 · 625 · 035 (625 is 25²).

    JanFebMarAprMayJunJulAugSepOctNovDec
    033614625035

    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):

    MonthCodePicture
    January0A snowman shaped like a zero
    February3A heart wearing mittens
    March3A marching mouse
    April6An April-fool shoe
    May1A single tulip
    June4A bride holding a rose
    July6Fireworks over a ship
    August2A nap in a hammock
    September5Back to school in the library
    October0A pumpkin shaped like a zero
    November3Turkey with mashed potato
    December5A Christmas tree light
  2. Learn the century codes. They repeat 6, 4, 2, 0 every 400 years.

    1600s1700s1800s1900s2000s2100s
    642064

    The two you will use most: 1900s = 0, 2000s = 6.

  3. 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 2
    17 = 69 ÷ 4 │ 86 − 84 = 2
    26 + 6 = 32 code 4
    6 = 26 ÷ 4 │ 32 − 28 = 4
    00 + 0 = 0 code 0
  4. Add the four codes and drop the 7s. Reduce as you go to keep numbers small: day 20 is 6, day 18 is 4.

  5. Adjust for January and February of a leap year. Subtract 1. Every other date needs nothing.

  6. 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.

20 July 1969, the Moon landing
Day 20
Month 6
July
Year 2
69 + 17 = 86, and 86 − 84 = 2
Century + 0
1900s
28
Sunday 0
28 − 28
29 February 2024, with the leap-year adjustment
Day 29
Month 3
February
Year 2
24 + 6 = 30, and 30 − 28 = 2
Century 6
2000s
Leap year − 1
January or February of a leap year
39
Thursday 4
39 − 35

Speed version of the first one: shrink the day first (20 − 14 = 6). Smaller numbers, fewer slips.

20 July 1969, reducing first
Day 6
20 − 14
Month 6
Year 2
Century + 0
14
Sunday 0
14 − 14

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 drill

Find 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

4 July 1776
Day 4
Month 6
July
Year 4
76 + 19 = 95, and 95 − 91 = 4
Century + 4
1700s
18
Thursday 4
18 − 14

Today's news: 18 October 2026

18 October 2026
Day 18
Month 0
October
Year 4
26 + 6 = 32, and 32 − 28 = 4
Century + 6
2000s
28
Sunday 0
28 − 28

Birthdays: a friend born 26 January 1950

1950 is not a leap year, so no adjustment.

26 January 1950
Day 26
Month 0
January
Year 6
50 + 12 = 62, and 62 − 56 = 6
Century + 0
1900s
32
Thursday 4
32 − 28

Practice set: the 1900s

DateAnswer
9 November 1989Thursday
15 April 1912Monday
8 May 1945Tuesday
31 December 1999Friday

Practice set: every century

DateAnswer
1 January 1600Saturday
1 March 1700Monday
1 January 1800Wednesday
1 January 1900Monday
25 December 2100Saturday

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

1.What is the month code for July?
2.Which century code is used for dates in the 2000s?
3.When do you subtract 1 from the total?

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