Day of the Week
Find what day of the week any date falls on.
How to use this tool
- Enter date in the fields above.
- Results update instantly as you type — or click Calculate.
- Read your day and the full breakdown beneath it.
Find what day of the week any date falls on.
Formula
Day = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][date.getUTCDay()]
getUTCDay() returns an integer 0 (Sunday) through 6 (Saturday).
How it works
This calculator determines which day of the week a given date falls on by parsing the date as a UTC timestamp and reading its day index, then mapping it to the corresponding name.
Using UTC prevents time-zone offset shifts from rolling the date into the previous or next day, which could produce an incorrect result for dates entered as midnight local time in certain zones. The calculation is exact for any date the JavaScript Date object can represent (years 100,000 BCE to 275,760 CE approximately).
Worked example
- Input date = 2024-01-01.
- Parse as UTC: January 1, 2024 falls at Unix timestamp 1,704,067,200,000 ms.
- getUTCDay() returns 1.
- Index 1 maps to 'Monday'.
Day of the week = Monday.
Common mistakes to avoid
- Assuming the same date recurs on the same weekday each year -- it shifts by 1 day (or 2 after a leap year).
- Entering a two-digit year and getting a result anchored in the 1900s rather than the 2000s.
- Confusing local calendar date with UTC -- dates near midnight in non-UTC time zones can appear to be a day off.
Key terms
- getUTCDay()
- A JavaScript Date method that returns the day of the week (0–6) based on UTC time, avoiding local time-zone interference.
- Doomsday algorithm
- A mental-arithmetic technique for computing the day of the week for any date; the same result this calculator provides via direct computation.
- Unix timestamp
- The number of milliseconds since 1 January 1970 UTC, used internally to represent any calendar date.
- ISO 8601 date
- The YYYY-MM-DD format used as input, ensuring the date is parsed unambiguously by all modern JavaScript engines.
- Week index
- The integer 0–6 assigned to each weekday, starting with Sunday = 0, used to look up the day name.
Frequently asked questions
- What day of the week is a historical date like July 4, 1776?
- Enter the full four-digit year (1776) and the calculator will apply Gregorian calendar rules, returning Thursday for that date.
- Why does the same date fall on different weekdays in different years?
- A non-leap year has 365 days (52 weeks + 1 day), so each date advances one weekday per year. Leap years add an extra day, shifting it by two.
- Is the result based on my local time zone?
- The calculator uses UTC, so dates entered near midnight in time zones far from UTC should account for a potential one-day difference.