How to use the calculator
Pick a date — or leave the field blank for today — and the result shows:
- Day of the week, the headline answer.
- Day of the year, from 1 (January 1) to 365 or 366.
- ISO week, using the international Monday-start week numbering many businesses and planners use.
- Leap year, whether the year has a February 29.
- Relative to today, how many days (and weeks) until or since the date.
- Doomsday, the anchor weekday for that year used in the mental method below.
A small table also shows the same date in nearby years, which is handy for planning birthdays and anniversaries. For February 29 it steps through leap years instead.
Working it out by hand: Zeller’s congruence
Zeller’s congruence turns a Gregorian date into a weekday with a single formula. Treat January and February as months 13 and 14 of the previous year, then:
h = (q + ⌊13(m + 1) / 5⌋ + K + ⌊K / 4⌋ + ⌊J / 4⌋ + 5J) mod 7
where q is the day of the month, m the month, K the year within the century (year mod 100) and J the century (⌊year / 100⌋). The answer h runs 0 = Saturday, 1 = Sunday, 2 = Monday, and so on to 6 = Friday.
Worked example: July 4, 1776
- q = 4, m = 7, K = 76, J = 17
- ⌊13 × 8 / 5⌋ = ⌊20.8⌋ = 20
- ⌊76 / 4⌋ = 19, ⌊17 / 4⌋ = 4, 5 × 17 = 85
- Sum: 4 + 20 + 76 + 19 + 4 + 85 = 208
- 208 mod 7 = 5, which is Thursday
Enter 1776-07-04 in the calculator and it agrees.
The Doomsday method
John Conway’s Doomsday rule is easier to do in your head. Certain easy dates — 4/4, 6/6, 8/8, 10/10, 12/12, the last day of February, and 9/5, 5/9, 7/11 and 11/7 — always share one weekday in a given year, called the Doomsday. For 2026 the Doomsday is a Saturday. To find November 23, 2026, start from 11/7 (a Saturday), add 16 days (two weeks plus 2 days), and arrive at Monday.
The Doomsday for a year is the century anchor (Tuesday for the 2000s, Wednesday for the 1900s) plus the last two digits of the year plus a quarter of them, rounded down. For 2026 that is 26 + 6 = 32 days after Tuesday, which lands on Saturday.
Limitations
The calculator uses the proleptic Gregorian calendar for every year from 1 to 9999, so it ignores the historical switch from the Julian calendar and has no year 0. ISO week numbers can belong to the previous or next year near January 1 — the result always says which. For counting the days between two dates, the age calculator and a dedicated date calculator are better suited.
Frequently asked questions
What day of the week was July 4, 1776?
It was a Thursday. You can confirm it with the worked Zeller's congruence example on this page, which gives h = 5, meaning Thursday.
What is an ISO week number?
ISO 8601 weeks start on Monday, and week 1 is the week that contains the year's first Thursday. That is why January 1, 2021 belongs to week 53 of 2020, and December 29, 2025 is in week 1 of 2026.
Does the calculator handle dates before 1582?
Yes, but it uses the Gregorian calendar extended backwards. Countries switched from the Julian calendar between 1582 and the 1920s, so a historical document may show a different date for the same day.
Why does the same date move by one weekday each year?
A common year is 365 days, which is 52 weeks plus 1 day, so a date shifts one weekday later. After February 29 in a leap year it shifts by two.
Last reviewed: