How to Find the Day of the Week for Any Date
Learn the odd-day method to find the day of the week for any calendar date, with leap-year rules and a worked example for interviews.
Expected Interview Answer
The day of the week for any date is found using odd-day arithmetic: count the total number of “odd days” (days beyond complete weeks) from a known reference date to the target date, then map the remainder mod 7 onto the days of the week.
An ordinary year has 365 days = 52 weeks + 1 day, so it contributes 1 odd day; a leap year contributes 2 odd days. To find odd days across centuries, memorize that 100 years contribute 5 odd days, 200 years contribute 3, 300 years contribute 1, and 400 years contribute 0 (since every 400-year cycle repeats the calendar exactly). For a specific date, sum the odd days from the reference century, the years within the century, and the days elapsed within the current year up to that date, then take the total mod 7 and map 0-6 onto Sunday through Saturday (with January 1, 1 CE conventionally taken as a Monday in most textbook conventions, so the mapping constant is calibrated to that anchor). Practicing with a fixed reference date, such as a well-known recent date, is faster in interviews than deriving from year 1 each time.
- Reduces a calendar question to simple modular arithmetic
- The 100/200/300/400-year odd-day pattern avoids counting every year
- A memorized reference date speeds up real interview calculations
AI Mentor Explanation
A bowler tracking overs uses the same “count the leftover” logic as odd days: 55 balls bowled is 9 complete overs (6 balls each) plus 1 leftover ball, and only that leftover matters for figuring out who bowls the next over, not the full ball count. Calendar odd-day arithmetic works identically — you only care about the days left over after removing complete 7-day weeks, then map that remainder onto a weekday, exactly like mapping a leftover ball onto the next bowler in rotation.
Worked example (odd-day method)
Reference
- 1 Jan 2000 = Saturday
Days elapsed
- 15 Jan − 1 Jan = 14 days
Remainder
- 14 mod 7 = 0 → Saturday
Step-by-Step Explanation
Step 1
Pick a known reference date
Use a memorized date and its known weekday as the anchor.
Step 2
Count elapsed days to the target
Include leap-year adjustments for any 29 February between the two dates.
Step 3
Reduce mod 7
Divide the elapsed days by 7 and keep only the remainder (the odd days).
Step 4
Map remainder to a weekday
Add the remainder to the reference weekday, wrapping around after Saturday.
What Interviewer Expects
- Correct use of odd-day arithmetic rather than manual calendar counting
- Correct century-block odd-day values (100→5, 200→3, 300→1, 400→0)
- Correct leap-year identification, including the century-divisible-by-400 rule
- Accurate final mod-7 mapping onto a weekday
Common Mistakes
- Forgetting that century years divisible by 100 but not 400 are not leap years
- Miscounting the leap day when it falls between the reference and target dates
- Adding total elapsed days directly instead of reducing mod 7 first
- Off-by-one errors in the weekday mapping after taking the remainder
Best Answer (HR Friendly)
“I anchor to a date whose weekday I already know, count the days between that anchor and the target date, being careful about leap years, and then take that count modulo 7. Whatever remainder is left tells me how many weekdays forward from the anchor the target date sits, so I just count forward that many days from the known weekday. For far-apart dates I use the memorized century odd-day values instead of counting every single year.”
Follow-up Questions
- How do you determine if a given year is a leap year using the divisibility rules?
- How would you extend this method to find the day of the week thousands of years in the future?
- Why do 400 years always contribute exactly 0 odd days?
- How would you verify your answer using a second, independent reference date?
MCQ Practice
1. If a reference date is a Wednesday and a target date is 10 days later, what day is the target?
10 mod 7 = 3; Wednesday + 3 days = Saturday.
2. How many odd days does a 400-year period contribute?
A 400-year cycle contains exactly 20871 weeks with no remainder, so it contributes 0 odd days, which is why the Gregorian calendar repeats every 400 years.
3. Which of these years is NOT a leap year?
1900 is divisible by 100 but not by 400, so it is not a leap year, unlike 2000 and 2400.
Flash Cards
Odd days contributed by an ordinary year? — 1 odd day (365 = 52 weeks + 1 day).
Odd days contributed by a leap year? — 2 odd days (366 = 52 weeks + 2 days).
Odd days for 100 / 200 / 300 / 400 years? — 5, 3, 1, 0 respectively.
Century leap-year rule? — Divisible by 100 is a leap year only if also divisible by 400.