Day of the Week Calculator for Any Date
NEWDay of the week calculator for any date from year 1 to 9999, with Zeller and Sakamoto working, day of year, ISO week number and days from today.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Find the weekday of a date
- Day of year
- 201 / 365
- ISO week
- 1969-W29
- From today
- …
Show Zeller's congruence working
- Adjust month/year
- m = 7, year = 1969
- q, K, J
- q = 20 (day), K = 1969 mod 100 = 69, J = ⌊1969 / 100⌋ = 19
- Formula
- h = (q + ⌊13(m+1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ + 5J) mod 7
- Substitute
- h = (20 + 20 + 69 + 17 + 4 + 95) mod 7 = 225 mod 7 = 1
- Result
- h = 1 → Sunday (0 = Saturday, 1 = Sunday … 6 = Friday)
Show Sakamoto's method working
- Table t[m]
- t = [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4], t[7] = 5
- Adjust year
- y = 1969
- Formula
- w = (y + ⌊y/4⌋ − ⌊y/100⌋ + ⌊y/400⌋ + t[m] + d) mod 7
- Substitute
- w = (1969 + 492 − 19 + 4 + 5 + 20) mod 7 = 2471 mod 7 = 0
- Result
- w = 0 → Sunday (0 = Sunday … 6 = Saturday)
N days from today
Quick Examples
Typical inputs and the results this tool produces.
Overview
Want to know what day you were born, which weekday a deadline lands on, or whether a holiday falls on a weekend? This day of the week calculator gives the weekday for any date from year 1 to 9999, together with the day of the year, the ISO 8601 week number and how many days ago or ahead the date is.
Behind the answer are two classic formulas, Zeller's congruence and Tomohiko Sakamoto's method, and you can open either one to see every number substituted. A second panel finds the date N days from today. Dates before October 1582 use the proleptic Gregorian calendar and are flagged. The calculation is pure integer arithmetic in your browser, so time zones and daylight saving never shift the result.
Why use this tool?
- Find the weekday of birthdays and historic dates
- Learn Zeller's congruence from a worked example
- Get the ISO week number for planning
- See how far a date is from today
- Private: runs entirely in your browser
Features
Any date
Works for every date from 1 January 1 to 31 December 9999.
Two methods shown
Step-by-step working for Zeller's congruence and Sakamoto's algorithm.
ISO week and day
Day of the year plus the ISO 8601 week, including weeks that belong to the neighbouring year.
N days from today
Enter a positive or negative number of days to get the resulting date and weekday.
Pre-1582 flag
Dates before the Gregorian reform are marked as proleptic, since records then used the Julian calendar.
How to Use
Pick a date
Use the Date field or press "Today".
Read the weekday
The weekday, day of year, ISO week and distance from today appear instantly.
Open the working
Expand Zeller's or Sakamoto's panel to follow the formula.
Count from today
Type a number in "Days" to see the date that many days away, then "Show working" for its weekday.