Day of Week Calculator

Find the day of the week for any date from year 1 to 9999, in the Gregorian or Julian calendar, with the Doomsday method worked step by step, or list every date that falls on a given weekday, such as each Friday the 13th.

Calculator Time & Date Updated Oct 3, 2026
Learn how this works
How to Use
  1. Enter a date to see its weekday, its day of the year, its ISO week number and whether the year is a leap year.
  2. For dates before 1582 in Europe, or before 1752 in Britain and its colonies, switch the calendar to Julian, the calendar people were actually using then.
  3. Show Work walks through the Doomsday rule, the method you can learn to do in your head.
  4. Choose Find dates to list every date that falls on a weekday across a range of years, such as each Friday the 13th, or the years your birthday falls on a Saturday.
Input
year 1 to 9999
Presets
Calendar
Weekday
—
Day of year
—
ISO week
—
Leap year
—

Worked Example

20 July 1969, by the Doomsday rule. Every century has an anchor weekday; for the 1900s it is Wednesday. Take the last two digits of the year, 69: 69 ÷ 12 = 5 remainder 9, and 9 ÷ 4 = 2 (ignoring the remainder). 5 + 9 + 2 = 16, and 16 mod 7 = 2, so 1969’s doomsday is 2 days after Wednesday: Friday.

In July the doomsday date is 7/11, so 11 July 1969 was a Friday. 20 July is 9 days later, and 9 mod 7 = 2: two days after Friday is Sunday.

The common mistake: a date read as UTC. Many programs turn “1969-07-20” into midnight UTC and then show it in local time. In New York that moment is 8 PM on 19 July, so the program says Saturday. The same bug makes date pickers jump back a day for anyone in the Americas.

Show Work

Enter a date above to see the calculation.

Formulas

Century anchor (Gregorian)
1800 Fri · 1900 Wed · 2000 Tue · 2100 Sun
Repeats every 400 years
Year’s doomsday
anchor + ⌊y/12⌋ + (y mod 12) + ⌊(y mod 12)/4⌋
y = last two digits; mod 7
Doomsday dates
4/4 6/6 8/8 10/10 12/12 · 9/5 5/9 7/11 11/7 · 3/14
Jan 3 (4 in leap years); last day of Feb
Zeller’s congruence
h = (q + ⌊13(m+1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ − 2J) mod 7
0 = Saturday; Jan and Feb count as months 13 and 14 of the year before
From a day number
weekday = (JDN + 1) mod 7
0 = Sunday; works for both calendars
Leap year
Gregorian: ÷4, not ÷100 unless ÷400
Julian: every 4th year

The Week and the Calendar Switch

The seven-day week has run without a break for well over a thousand years, even through calendar reforms. When Pope Gregory XIII’s calendar came into force, Thursday 4 October 1582 was followed by Friday 15 October 1582: ten dates were skipped, but no weekdays. That is why a weekday can be computed for any date in either calendar from one continuous count of days, the Julian Day Number.

John Conway devised the Doomsday rule in 1973, inspired by Lewis Carroll’s earlier method, and practised it until he could name the weekday of any date in about two seconds; his computer quizzed him each time he logged in. Christian Zeller published his congruence in 1882, one of the first formulas that a calculating machine could follow.

About This Calculator

This calculator gives the weekday, day of the year, ISO week and leap-year status for any date from year 1 to 9999, in the proleptic Gregorian or the Julian calendar, and shows the Doomsday working so you can check it by hand. Find dates lists every date in a range of years that matches a weekday and a day of the month, in any month or one month only.

It works with calendar day numbers rather than clock times, so your time zone cannot shift the answer. Everything runs in your browser.

Related calculators: Date Calculator, Age Calculator, and Work Day Calculator.

Frequently Asked Questions

What is the Doomsday rule?

A mental method invented by the mathematician John Conway. In any year, a set of easy dates all fall on the same weekday, the year’s “doomsday”: 4/4, 6/6, 8/8, 10/10, 12/12, the last day of February, 9/5, 5/9, 7/11, 11/7 and 3/14. Work out that weekday from the year, then count from the nearest doomsday in the month. In 2026 all of them fall on a Saturday.

Why does my computer sometimes show the wrong weekday?

A common software bug reads a date such as 1969-07-20 as midnight UTC and then shows it in local time. Anywhere west of Greenwich that moment is still the previous evening, so the date and weekday come out one day early: Saturday instead of Sunday. This calculator works with plain calendar dates, so it never shifts.

When should I use the Julian calendar?

For historical dates recorded before a country switched to the Gregorian calendar: 1582 in Italy, Spain and Portugal, 1752 in Britain and its American colonies, 1918 in Russia. The Battle of Hastings, 14 October 1066, was a Saturday in the Julian calendar used at the time.

What is an ISO week number?

ISO 8601 numbers weeks from Monday to Sunday, and week 1 is the week that contains the year’s first Thursday. So 1 January can belong to week 52 or 53 of the previous year. 3 October 2026 is in week 40.

How often is there a Friday the 13th?

Every year has at least one and at most three. Over the 400-year Gregorian cycle the 13th falls on a Friday slightly more often than on any other weekday: 688 times, against 684 or 685 for most other days. 2026 has three, in February, March and November.

How do I use the Day of Week Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Birthdays and anniversaries

Find which upcoming years a birthday falls on a weekend, for planning a party.

History

The US Declaration of Independence was adopted on Thursday 4 July 1776; the Moon landing was on Sunday 20 July 1969.

Scheduling

Check that a deadline such as 3 October 2026 is not on a weekend: it is a Saturday, day 276 of the year, ISO week 40.

Superstition and trivia

There are 17 Friday the 13ths from 2026 to 2035; 2027 has only one, in August.

Last updated: