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
Today
Doomsday dates: the easy dates to remember in every month
| Month | Doomsday date | In a leap year |
|---|---|---|
| January | January 3 | January 4 |
| February | February 28 | February 29 |
| March | March 14 | Same |
| April | April 4 | Same |
| May | May 9 | Same |
| June | June 6 | Same |
| July | July 11 | Same |
| August | August 8 | Same |
| September | September 5 | Same |
| October | October 10 | Same |
| November | November 7 | Same |
| December | December 12 | Same |
Century anchor days
| Century | Anchor weekday | Anchor number (Sunday = 0) |
|---|---|---|
| 1600s | Tuesday | 2 |
| 1700s | Sunday | 0 |
| 1800s | Friday | 5 |
| 1900s | Wednesday | 3 |
| 2000s | Tuesday | 2 |
| 2100s | Sunday | 0 |
July 20 in the ten years after 1969
| Year | Weekday |
|---|---|
| 1970 | Monday |
| 1971 | Tuesday |
| 1972 | Thursday |
| 1973 | Friday |
| 1974 | Saturday |
| 1975 | Sunday |
| 1976 | Tuesday |
| 1977 | Wednesday |
| 1978 | Thursday |
| 1979 | Friday |
How to find the day of the week of a date in your head (Doomsday rule)
- 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.
- 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.
- 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.
- Pick the month doomsday date. Use the table above. For July it is July 11, which is also a Friday.
- 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
- Doomsday rule, Wikipedia
- Conway, J. H. "Tomorrow is the Day After Doomsday", Eureka 36 (1973)
- ISO 8601 date and time format, International Organization for Standardization
- Gregorian calendar and its adoption, Wikipedia
More free tools
- Week Number CalculatorFind the week number of any date in the ISO 8601 and US systems, or the dates a week number covers. Also day of the year, days left and quarter.
- Days Between DatesCount the days between two dates, with weeks, months and years, business days and US federal holidays. Include or leave out the end date.
- Age CalculatorYour exact age in years, months and days on any date, in total weeks, days and hours, with a countdown to your next birthday. Feb 29 births handled.
- Add Days to a DateAdd or subtract days, weeks, months, years or business days from a date and see the date you land on, with month ends and leap years handled.
- Business Days CalculatorCount working days between two dates, or add and subtract business days from a date. Skips weekends and US federal holidays on their observed dates.
- Military Time ConverterConvert military time (24-hour) to standard 12-hour time and back: 1430, 2:30 pm, noon, 2400. How to say it, a 24-hour chart and the Zulu zone letters.