• Practice
  • About 15 min
  • 5 practice questions

Month codes and year codes: finding the weekday faster

Use ready-made month codes and a century table to find any weekday with three small additions.

If something looks wrong, please tell us.

The odd-day method is reliable but slow if you add the months every time. Competitive exams reward speed, so this lesson packs the month part into a single number - the month code - and the year part into a short calculation - the year code. The answer is still the same total of odd days; you simply stop recomputing what never changes.

Month codes

A month code is the odd days of all the months before it in an ordinary year. January has nothing before it, so 0. February has January before it: 3. March has January and February: 3 + 0 = 3. April: 3 + 0 + 3 = 6, and so on, reducing by 7.

Month codes for an ordinary year
MonthsCodes
January, February, March0, 3, 3
April, May, June6, 1, 4
July, August, September6, 2, 5
October, November, December0, 3, 5

Memorise them in groups of three: 033, 614, 625, 035. In a leap year, add 1 to the code of every month from March to December, because the 29th of February has passed. January and February keep their codes.

Year codes

The year code is the odd days of the completed years, as in lesson 2. Speed it up with a century table based on the century the completed years fall in:

Given yearCentury partCode
1701-18001700 years5
1801-19001800 years3
1901-20001900 years1
2001-21002000 years0

Then add the leftover completed years r and the leap years among them, r / 4 (whole part). Year code = century code + r + (r / 4), reduced by 7. For 2026, completed years are 2025 = 2000 + 25, so the year code is 0 + 25 + 6 = 31, giving 3.

Weekday = year code + month code (+1 from March in a leap year) + date, reduced by 7. Month codes: 033 614 625 035. Century codes: 1700s 5, 1800s 3, 1900s 1, 2000s 0.

Worked example 1: 12 March 1930

Completed years 1929 = 1900 + 29. Year code = 1 + 29 + 7 = 37, giving 2. 1930 is not leap, so the March code is 3. Date 12. Total 2 + 3 + 12 = 17, giving 3: Wednesday.

Worked example 2: 15 August 2026

Year code for 2026 = 3 (shown above). August code = 2. Date 15. Total 3 + 2 + 15 = 20, giving 6: Saturday.

Worked example 3: 25 December 2028

Completed years 2027 = 2000 + 27. Year code = 0 + 27 + 6 = 33, giving 5. 2028 is leap and December is after February, so the December code is 5 + 1 = 6. Date 25. Total 5 + 6 + 25 = 36, giving 1: Monday.

Speed habits

  • Reduce the date by 7 first: 25 becomes 4, 15 becomes 1.
  • Keep the year code of the current year and the next few years in your head; many questions use them.
  • Do the leap check only when the month is March or later.
  • Cross-check one familiar date (for example, today's date) whenever you have a spare moment in practice.

Key takeaways: month codes and year codes are just stored odd days. Learn 033 614 625 035 and the century codes 5, 3, 1, 0 for the 1700s to 2000s. Remember the +1 for March to December in a leap year. With practice, any date takes under thirty seconds.

Check your understanding

  1. 1. What is the month code of August in an ordinary year?

    1. 3
    2. 2
    3. 5
    4. 6
    Show answer

    Answer: B. The code is the odd days of January to July: 3 + 0 + 3 + 2 + 3 + 2 + 3 = 16 = 2 weeks + 2, so the August code is 2.

  2. 2. Using codes, what day of the week was 13 April 1919?

    1. Saturday
    2. Monday
    3. Tuesday
    4. Sunday
    Show answer

    Answer: D. Completed years 1918 = 1900 + 18: year code = 1 + 18 + 4 = 23, giving 2. April code = 6 (1919 is not leap anyway). Date 13 gives 6. Total 2 + 6 + 6 = 14, giving 0: Sunday.

  3. 3. Using codes, what day of the week is 1 January 2030?

    1. Tuesday
    2. Wednesday
    3. Monday
    4. Thursday
    Show answer

    Answer: A. Completed years 2029 = 2000 + 29: year code = 0 + 29 + 7 = 36, giving 1. January code = 0. Date 1. Total 1 + 0 + 1 = 2: Tuesday.

  4. 4. In a leap year, what code do you use for May?

    1. 0
    2. 3
    3. 2
    4. 1
    Show answer

    Answer: C. The ordinary code for May is 1 (odd days of January-April: 3 + 0 + 3 + 2 = 8, giving 1). In a leap year February has 1 odd day, so add 1 for every month from March onward: the May code becomes 2.

  5. 5. Using codes, what day of the week will 15 August 2047 be?

    1. Wednesday
    2. Thursday
    3. Friday
    4. Saturday
    Show answer

    Answer: B. Completed years 2046 = 2000 + 46: year code = 0 + 46 + 11 = 57, giving 1. August code = 2 (2047 is not leap). Date 15 gives 1. Total 1 + 2 + 1 = 4: Thursday.

Privacy · Terms · Refunds · Delivery