HomeDate & Time › Day of the Week

Day of the Week Calculator

Day of the Week
Day of Year
ISO Week Number
Days from Today
Show the math
Enter values to see the worked formula.

What Your Result Means

How This Calculator Works

You enter any date. The tool creates a JavaScript Date object set to midnight local time and reads the built-in getDay() index to determine the weekday. Day-of-year is calculated by counting days elapsed since January 1. The ISO week number follows the ISO 8601 rule where week 1 is the week containing the first Thursday of January. Days from today is a simple timestamp subtraction divided by 86,400,000 milliseconds per day.

Quick Questions

How far back in history can I look up a date?

JavaScript's Date object supports years from roughly 271,821 BCE to 275,760 CE. In practice, any date in the common era works reliably. Very ancient dates may not align with the historical Julian calendar.

What is an ISO week number?

ISO 8601 defines week 1 as the week containing the year's first Thursday, with weeks starting on Monday. This means January 1 can sometimes fall in week 52 or 53 of the previous year.

Does this account for the Julian-to-Gregorian calendar switch?

No. The calculator uses the proleptic Gregorian calendar throughout. Historical dates before the Gregorian adoption (1582 in most of Europe) may differ from contemporary records that used the Julian calendar.

Why does "days from today" update when I reload?

The calculation compares your chosen date to the current device time. Each page load recalculates the difference, so it always shows the up-to-date distance from right now.

Sources

Method & review

MethodologyHow we calculate this Reviewed & Updated2026-04 Next review2027-04

Estimate only. Results reflect your inputs and standard formulas. Double-check important decisions independently.