Skip to main content
ponderloop

Day of the Week Calculator: What Day Was It?

To find the day of the week of any date, count the days from a day you know and take the remainder after dividing by 7. July 20, 1969 fell on a Sunday: the 3rd Sunday of July. Its ISO week is week 29 of 1969 (1969-W29). Pick any date from the year 1 to 9999 below for its weekday, the same date in the next ten years, and the next year it falls on the weekday you choose. To do it in your head, use the Doomsday rule: Sunday comes from a Friday doomsday in 1969 and a count of 2 days forward from July 11.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

What day was it?

Pick a date or type it; years 1 to 9999 work. Nothing you enter leaves your browser.

Result

Sunday

July 20, 1969 falls on a Sunday: the 3rd Sunday of July.

Which one in the month
The 3rd Sunday of July 1969
Last of its kind in the month?
No, the last Sunday of July is the 27th
ISO week
Week 29 of 1969 (1969-W29)
Day of the year
201 of 365
Days left in the year
164 days
Year type
1969 is not a leap year (365 days)
July 20 in the next 10 years
  • 1970: Monday
  • 1971: Tuesday
  • 1972: Thursday
  • 1973: Friday
  • 1974: Saturday
  • 1975: Sunday
  • 1976: Tuesday
  • 1977: Wednesday
  • 1978: Thursday
  • 1979: Friday

Work it out in your head

The Doomsday rule, step by step for the date above. Weekdays count from Sunday = 0 to Saturday = 6.

Result: Sunday

  1. Century anchor. For the 1900s the anchor weekday is (5 × (19 mod 4) + 2) mod 7 = 17 mod 7 = 3, a Wednesday.
  2. Year part. The last two digits are 69. 69 ÷ 12 = 5 remainder 9; 9 ÷ 4 = 2 (rounded down); 5 + 9 + 2 = 16.
  3. Doomsday of 1969. 3 + 16 = 19; 19 mod 7 = 5, so doomsday 1969 is a Friday.
  4. Doomsday in July. The date that shares the year's doomsday weekday is July 11, a Friday.
  5. Count from it. 20 − 11 = 9; taking that modulo 7 gives 2.
  6. Answer. 5 + 2 = 7; 7 mod 7 = 0, a Sunday.

When does this date fall on a weekday I choose?

Uses the month and day of the date above, for a birthday or an anniversary. February 29 counts leap years only.

Result

Saturday, July 20, 1974

After 1969, July 20 next falls on a Saturday in 1974, 5 years later.

Next time
Saturday, July 20, 1974
Wait
5 years
Then
Saturday, July 20, 1985 (11 years after that)
In the next 100 years
14 times (1970 to 2069)
The next 8 years July 20 is a Saturday
  • 1974 (5 years later)
  • 1985 (16 years later)
  • 1991 (22 years later)
  • 1996 (27 years later)
  • 2002 (33 years later)
  • 2013 (44 years later)
  • 2019 (50 years later)
  • 2024 (55 years later)

Doomsday dates: the easy dates to remember in every month

In any year, all of these dates fall on the same weekday, the doomsday of that year. In a leap year January and February move one day later. Learn them once and every date is a short count away.
MonthDoomsday dateIn a leap year
JanuaryJanuary 3January 4
FebruaryFebruary 28February 29
MarchMarch 14Same
AprilApril 4Same
MayMay 9Same
JuneJune 6Same
JulyJuly 11Same
AugustAugust 8Same
SeptemberSeptember 5Same
OctoberOctober 10Same
NovemberNovember 7Same
DecemberDecember 12Same

Century anchor days

The anchor is the doomsday of the year 00 of each century. The pattern repeats every 400 years, which is how long the Gregorian calendar takes to return to the same weekdays.
CenturyAnchor weekdayAnchor number (Sunday = 0)
1600sTuesday2
1700sSunday0
1800sFriday5
1900sWednesday3
2000sTuesday2
2100sSunday0

July 20 in the ten years after 1969

The example date moves one weekday later each year, or two when a leap day falls in between. It was a Sunday in 1969.
YearWeekday
1970Monday
1971Tuesday
1972Thursday
1973Friday
1974Saturday
1975Sunday
1976Tuesday
1977Wednesday
1978Thursday
1979Friday

How to find the day of the week of a date in your head (Doomsday rule)

  1. Find the century anchor. Compute (5 × (century mod 4) + 2) mod 7, with Sunday = 0. For the 1900s that is 3, a Wednesday; for the 2000s it is 2, a Tuesday.
  2. Add the year part. Take the last two digits of the year. Divide by 12 (rounded down), add the remainder, then add the remainder divided by 4 (rounded down). For 1969: 5 + 9 + 2 = 16.
  3. Get the doomsday of the year. Add the century anchor and the year part and take the result modulo 7. For 1969: 3 + 16 = 19, and mod 7 that is 5, a Friday.
  4. Pick the month doomsday date. Use the table above. For July it is July 11, which is also a Friday.
  5. Count forward to your date. The difference between your day and the doomsday date, modulo 7, is how many weekdays to move forward. 20 − 11 = 9, and that mod 7 is 2, so move 2 days forward from Friday: a Sunday.

Frequently asked questions

What day of the week was I born?
Enter your birth date. For example, July 20, 1969 was a Sunday. The calculator also shows which weekday occurrence in the month it was and, in the second box, the next years your birthday falls on a weekday you choose.
How does the Doomsday rule work?
John Conway devised it in the 1970s. In every year, a handful of easy dates (4/4, 6/6, 8/8, 10/10, 12/12, 5/9, 9/5, 7/11, 11/7, the last day of February and the 3rd or 4th of January and 14th of March) fall on the same weekday, called the doomsday. Work out the doomsday of the year from its century and last two digits, then count from the nearest doomsday date to your date. The calculator shows these steps for the date you enter.
How do I find which Saturday a birthday falls on?
Use the second box: pick the date and a weekday and it lists the next years that month and day falls on it. For July 20 after 1969, the next Saturday is in 1974. A date typically returns to the same weekday 5, 6 or 11 years later.
How is a date on February 29 handled?
February 29 exists only in leap years, so the next-years list and the weekday search count only leap years. A leap day repeats its weekday every 28 years most of the time, but century years such as 2100 are not leap years and break the cycle.
Is the weekday correct for dates before 1582?
It is correct for the proleptic Gregorian calendar, which extends the Gregorian rules backwards, as ISO 8601 and most software do. Historical records from before a country switched to the Gregorian calendar were dated in the Julian calendar, which runs days behind (10 days in 1582, 13 today). The calendar changed at different times: 1582 in Catholic Europe, 1752 in Britain and its colonies, 1918 in Russia and 1923 in Greece. For a historical date, convert it to Gregorian first.
Why does the weekday of a date move by one each year?
A common year has 365 days, which is 52 weeks and 1 day, so the same date falls one weekday later next year, or two when a leap day falls in between. The whole pattern repeats every 400 years, because 400 years contain exactly 146,097 days, a whole number of weeks.
What does "the 2nd Tuesday of the month" mean here?
The tool counts how many times that weekday has occurred in the month up to and including your date: days 1 to 7 are the first of their weekday, 8 to 14 the second, and so on. It also says whether your date is the last such weekday of the month, which matters for rules like "the last Monday in May".
Which ISO week is the date in?
ISO 8601 weeks start on Monday and week 1 holds the first Thursday of the year. The result shows the week and its code, such as 1969-W29. For US weeks and the dates a week number covers, see the week number calculator.

How it works

Each date is turned into a day number (days since January 1, 1970) with integer arithmetic on the Gregorian calendar, with no time zone or daylight saving involved, so a date never moves to another day. The weekday is that day number plus 4 (January 1, 1970 was a Thursday), modulo 7. The occurrence in the month is the day of the month divided by 7, rounded up; the last such weekday is the one with fewer than 7 days left in the month. The ISO week is the same function as the week number calculator (weeks start Monday; week 1 holds the first Thursday). The next-years list takes the same month and day in later years and skips years where it does not exist (February 29 in a common year). The Doomsday working is calculated step by step from the date, using the century anchor (5 × (century mod 4) + 2) mod 7, the year part (a + b + ⌊b ÷ 4⌋, where the last two digits of the year are 12a + b), and the month's doomsday date, and it is checked against the day-number computation for every day from 1900 to 2100 and for every month of every year from 1 to 9999. Years 1 to 9999 are supported. Dates before October 15, 1582 use the proleptic Gregorian calendar: the Gregorian rules extended backwards. Countries adopted the calendar at different times, so a date from a historical record may need converting from the Julian calendar first. Everything runs in your browser; the date you enter is never sent anywhere.

Sources

All toolsHome & DIY calculators