CalculateItNow home

Day of the Week Calculator

What day of the week a date falls on, plus its day number in the year, ISO week number, leap-year status, and that date's weekday in nearby years.

Day of the Week Calculator: with the default inputs, day of the week is Thursday.

Try an example
Day of the week
Thursday
Day number in the year
253
Days left in the year
112
ISO week number
37
ISO week-numbering year
2,026
Leap year?
No — 2,026 has 365 days
Ordinal date
2026-253
Julian day number
2,461,294
Assumptions
  • Dates use the proleptic Gregorian calendar, so pre-1582 answers differ from contemporary Julian-calendar records.
  • ISO-8601 week numbering: weeks start on Monday and belong to the year containing their Thursday.
  • Weekday, day-of-year and week number are computed from integer day counts, so they do not depend on any time zone.
September 10 in nearby years
YearDay of the weekYear type
2021Fridaycommon
2022Saturdaycommon
2023Sundaycommon
2024Tuesdayleap
2025Wednesdaycommon
2026Thursdaycommon◀ the date you entered
2027Fridaycommon
2028Sundayleap
2029Mondaycommon
2030Tuesdaycommon
2031Wednesdaycommon

A date moves forward one weekday each ordinary year and two across a leap day, so the pattern repeats every 28 years — except around century years that are not leap years.

Math verified by automated testsUpdated 2026-09-092 sources cited

How this is worked out

The formula

Weekday from a day count (no lookup table, no Date object):

  days = days from 1 January 1970 to the date   (Hinnant's civil algorithm)
  weekday = (days + 4) mod 7,   0 = Sunday       (1 January 1970 was a Thursday)

Leap year:  divisible by 4, except centuries, except centuries divisible by 400.
  2000 → leap (divisible by 400).  1900 → not (century, not divisible by 400).

ISO week:  the week runs Monday–Sunday and belongs to the year containing its Thursday.
  week = ⌊(that Thursday − 1 January of the ISO year) ÷ 7⌋ + 1

Julian day number = days since 1970-01-01 + 2,440,588.

Open How it’s calculated above to see this worked through with your own numbers.

What you enter

Date
Any date from the year 1000 onwards. Historic dates use the proleptic Gregorian calendar.defaults to today

What you get back

Day of the weekmain answer
Day number in the year
Days left in the year
ISO week number
ISO week-numbering year
Late December and early January can belong to the neighbouring year's week count.
Leap year?
Ordinal date
The ISO-8601 year-plus-day-number form.
Julian day number
Days since 1 January 4713 BC — the count astronomers use.

What this assumes

  • Dates use the proleptic Gregorian calendar, so pre-1582 answers differ from contemporary Julian-calendar records.
  • ISO-8601 week numbering: weeks start on Monday and belong to the year containing their Thursday.
  • Weekday, day-of-year and week number are computed from integer day counts, so they do not depend on any time zone.

About this calculator

Give it a date and it tells you which day of the week that was — or will be — along with the numbers calendars are actually indexed by: the day number within the year, the ISO week, whether the year is a leap year, and the astronomer's Julian day number.

How the weekday is worked out

Not by looking anything up. The date is converted to a count of days since 1 January 1970, which is a small piece of exact integer arithmetic, and then reduced modulo 7. Because 1 January 1970 was a Thursday, weekday = (days + 4) mod 7 with Sunday as 0. The same method underlies Zeller's congruence and the Doomsday rule, which are the pencil-and-paper versions.

Doing it arithmetically rather than through a date object matters: it makes the answer independent of the server's time zone, and it avoids the trap where a two-digit year is silently interpreted as 19-something.

Leap years

Divisible by 4 is a leap year, unless it is a century, unless that century is divisible by 400. So 1996 and 2024 are leap years, 1900 and 2100 are not, and 2000 is — which is why 2000 felt like an exception and was in fact the rule's exception to its own exception. The correction exists because the tropical year is about 365.2422 days, not 365.25; the Gregorian scheme averages 365.2425, leaving an error of roughly one day in 3,200 years.

ISO week numbers

The ISO-8601 week starts on Monday and belongs to whichever year contains its Thursday. Consequently week 1 is the week holding the first Thursday of January, 29, 30 or 31 December can belong to week 1 of the next year, and 1, 2 or 3 January can belong to week 52 or 53 of the previous one. The calculator reports the ISO week-numbering year separately and flags it when it disagrees with the calendar year — a discrepancy that quietly breaks a lot of reporting spreadsheets every January.

The nearby-years table

The same calendar date shifts forward one weekday each ordinary year and two across a leap day, so the whole pattern repeats every 28 years — except around century years that skip their leap day, which is why the table is worth reading rather than the rule.

Dates before 1582

The Gregorian calendar was introduced in October 1582, and Britain and its American colonies did not adopt it until September 1752, when they deleted eleven days. Historic dates here use the proleptic Gregorian calendar — today's rules run backwards — which is the scientific convention and the one ISO-8601 requires. It is not what a contemporary almanac would have printed, and the calculator warns you when the distinction bites. On this convention 4 July 1776 was a Thursday, which matches the historical record because Britain had already switched by then.

Frequently asked questions

What day of the week was 4 July 1776?

A Thursday. Britain and its colonies had adopted the Gregorian calendar in 1752, so the modern calendar and the contemporary one agree on that date.

Was 1900 a leap year?

No. It is divisible by 4 but it is a century year not divisible by 400, so it was skipped. 2000 was divisible by 400 and did have a 29 February.

Why does my date show a different ISO year?

ISO weeks belong to the year containing their Thursday. A date in the last days of December can therefore fall in week 1 of the following year, and early January can fall in week 52 or 53 of the previous one.

Can I use dates before 1582?

Yes, back to the year 1000, but they are computed on the proleptic Gregorian calendar — modern rules projected backwards. Contemporary records of the time used the Julian calendar and will show a different weekday.

What is a Julian day number?

A running count of days since 1 January 4713 BC, used in astronomy so that intervals can be computed without calendar arithmetic. It changes at noon UT rather than midnight.

Put this calculator on your own site

A working day of week, free for any site, with no ads and no sign-up. It resizes to fit wherever you paste it and updates itself as this page improves.

Paste this anywhere. It works on any site, carries no ads, never expires, and always shows the current version.

Day of the Week Calculator by CalculateItNow

The page's own title. The clearest description of what the link leads to.

The credit line sits outside the widget on purpose, so it is a real link on your page rather than one buried in a frame. Please keep it — it is what pays for CalculateItNow staying free and ad-free. The script only resizes the widget to fit its contents; drop it and the widget still works.

Browse every calculator widget·How to add it to WordPress, Squarespace or Wix

The questions people ask next to a day of week.

All everyday calculators·Browse everything