Skip to content
K Knidox Search…
Time & Date · Calendar

Day of the Week Calculator

Find the weekday name for any calendar date, past or future.

Day of the week
—

Pick a date to find its weekday.

To find the day of the week, read the date at UTC midnight and take its weekday index (Sunday = 0 … Saturday = 6). For example, 15 August 2026 falls on a Saturday — day 227 of the year, in ISO week 33. The tool works for any past or future date.

How the weekday is worked out

The weekday of any date follows a fixed 7-day cycle, so it can be computed exactly rather than looked up. This tool reads your date at UTC midnight — free of time-zone or daylight-saving shifts — and takes its weekday index, where Sunday = 0 through Saturday = 6, then maps that index to a name. Alongside the weekday it reports the day of the year (1–366), the ISO-8601 week number, whether the date is a weekday or a weekend, and how many days separate it from today.

h = (q + ⌊13(m + 1) ÷ 5⌋ + K + ⌊K ÷ 4⌋ + ⌊J ÷ 4⌋ − 2J) mod 7

Zeller’s congruence (Gregorian): h gives the weekday where 0 = Saturday … 6 = Friday. q = day, m = month (March = 3 … February = 14, so January and February count as months 13 and 14 of the previous year), K = year mod 100, J = ⌊year ÷ 100⌋.

Worked example: 15 August 2026

August is month 8, so no January/February adjustment is needed and the year stays 2026.

  1. 1
    Adjust January and February. Only January and February are renumbered as months 13 and 14 of the previous year. August is month 8, so m = 8 and the year stays 2026.
  2. 2
    Set the pieces. q = 15, m = 8, K = 2026 mod 100 = 26, and J = ⌊2026 ÷ 100⌋ = 20.
  3. 3
    Add the terms. 15 + ⌊13 × 9 ÷ 5⌋ + 26 + ⌊26 ÷ 4⌋ + ⌊20 ÷ 4⌋ − 2 × 20 = 15 + 23 + 26 + 6 + 5 − 40 = 35.
  4. 4
    Take the result mod 7. 35 mod 7 = 0, and h = 0 means Saturday — so 15 August 2026 is a Saturday.

Weekday index reference

This tool numbers days with JavaScript’s getUTCDay (Sunday = 0). Zeller’s congruence uses a different origin (h = 0 is Saturday), so the two columns do not match — check which convention a source uses before comparing.

getUTCDay indexWeekdayZeller h
0Sunday1
1Monday2
2Tuesday3
3Wednesday4
4Thursday5
5Friday6
6Saturday0

Calendar edge cases

It uses the proleptic Gregorian calendar. Weekdays are computed with the modern Gregorian rules extended backwards to every year, including dates before the calendar existed. That keeps the 7-day cycle consistent across the whole range, but it is a mathematical projection, not what people living then would have written.

Pre-1582 dates can differ from history books. Most of Europe used the Julian calendar until the 1582 reform (and some countries switched much later), when 10 days were dropped to realign the seasons. A history source quoting a Julian date will often name a different weekday than the proleptic Gregorian result shown here, so state which calendar you mean when the date is old.

Leap years shift the day of the year. After 29 February, a date sits one ordinal position later than in a common year, which is why the day-of-year figure runs to 365 in most years and 366 in leap years.

What day of the week was I born?
Enter your birth date and the tool names the weekday instantly. For example, 20 July 1969 — the first Moon landing — was a Sunday.
Does it handle past and future dates?
Yes. Any calendar date works, centuries into the past or future; the 7-day cycle is computed directly rather than looked up from a table.
What calendar does it use?
The proleptic Gregorian calendar — modern Gregorian rules applied to every year, including dates before the calendar was adopted in 1582.
Why does an old date’s weekday differ from history books?
Before the 1582 reform much of the world used the Julian calendar, and countries switched at different times. A Julian date from a history source can fall on a different weekday than the proleptic Gregorian value shown here.
What is Zeller’s congruence?
It is a formula that returns the weekday of any Gregorian date from its day, month, and year using integer arithmetic — the method shown in the worked example above.
How is the ISO week number defined?
ISO-8601 weeks start on Monday, and week 1 is the week containing the year’s first Thursday. A date in early January can therefore fall in the last week of the previous week-year.
Does my time zone affect the result?
No. The date is read at UTC midnight, so the weekday depends only on the calendar date you type, not on your local time zone or any daylight-saving change.