Weekday Calculator - Weekday Name and ISO Index
Use this weekday calculator to find the weekday name, ISO weekday index, ISO week number, day of year, and leap year flag for any date in seconds.
Weekday Calculator
Results
What Is a Weekday Calculator?
A weekday calculator turns any Gregorian date into the weekday name, a numeric weekday index, the ISO 8601 weekday number, the ISO 8601 week number, the day-of-year ordinal, and a leap-year flag in one screen. Type the date in YYYY-MM-DD order or leave the field blank to read today's weekday without retyping the current date.
- • Birthday and Anniversary Lookups: Find the weekday of a birth date or wedding anniversary so the milestone can be celebrated on the right day of the week.
- • Planning Around Future Events: Check whether a wedding, court date, release window, or surgery falls on a weekday or weekend before booking travel or staffing.
- • Historical and Genealogy Research: Verify the weekday of a recorded event from a family tree, a baptism record, or an old letter to align the calendar with the story.
- • Programming and Spreadsheet Formulas: Pull a 0-6 or 1-7 weekday index straight from the result panel into a JavaScript, Python, or spreadsheet helper without rewriting date math.
The calculator answers a stubborn question that calendars hide behind a wall of dates: given a single Y, M, and D, what day of the week is that? Knowing the answer turns the date into something you can plan around and reference in conversation with the same confidence as naming a month.
The result panel pairs the weekday name with the numeric weekday index, the ISO weekday number, the ISO week number, the day-of-year ordinal, and a leap-year flag, so the same lookup also covers 'what week of the year is that?' and 'is this a leap year?'.
When you also need the numbered day of the year that goes with the weekday name, Day Of The Year Calculator returns the same date's day-of-year ordinal and weekday on the same screen.
How the Weekday Calculator Works
The calculator parses the entered date, applies the Gregorian leap-year rule, computes the day-of-year ordinal, derives the ISO weekday number from the standard Mon=1 numbering, and finally shifts the date to the Thursday of its week to count the ISO week number from the year's first Thursday.
- dateInput: Date string in YYYY-MM-DD order, or blank to use the user's local today converted to a UTC midnight.
- anchorWeekday: Weekday index of the chosen anchor (Sunday=0). The default anchor is 1970-01-01, a Thursday.
- totalDaysFromEpoch: Whole UTC days between the chosen anchor and the entered date, measured in 86,400-second steps.
- dayOfYear: Sum of the month lengths before the chosen month plus the day-of-month, with February extended to 29 days in leap years.
- firstThursday: Thursday of the ISO week that contains 4 January of the Thursday-shifted year, used as the ISO week-number origin.
The weekday name comes from the standard JavaScript Date.getUTCDay() lookup, which returns 0 for Sunday through 6 for Saturday and is mapped to plain English in the result panel.
The ISO 8601 weekday number is recomputed as ((weekdayIndex + 6) mod 7) + 1 so Monday becomes 1 and Sunday becomes 7.
Weekday for 4 July 2026
Date: 2026-07-04
2026 is not a leap year, so July 4 is the 31 + 28 + 31 + 30 + 31 + 30 + 4 = 185th day of the year. The day-shifted Thursday lands on 2 July 2026, which is 182 days after 1 January 2026, so ISO week number = ceil((182 + 1) / 7) = 27.
Saturday, weekday index 6, ISO weekday 6, ISO week 27, day of year 185, not a leap year.
Use this to plan a Saturday Independence Day event or to verify that the next US Independence Day weekend lands on a Saturday in 2026.
Weekday for 29 February 2024
Date: 2024-02-29
February has 29 days in 2024. Day of year = 31 + 29 = 60. The day-shifted Thursday is 29 February 2024 itself, which is 59 days after 1 January 2024, so ISO week number = ceil((59 + 1) / 7) = 9.
Thursday, weekday index 4, ISO weekday 4, ISO week 9, day of year 60, leap year.
Use this to confirm that the 2024 leap day falls on a Thursday so you can plan pay cycles, sprint reviews, or birthday calendars that wrap around 29 February.
According to International Organization for Standardization (ISO 8601), ISO 8601 numbers weekdays Monday=1 through Sunday=7 and identifies each week of the year using the week that contains the year's first Thursday.
Key Concepts Behind the Weekday Calculator
Four small ideas decide what the calculator actually returns and why the same calendar date can land on a different day of the week from one year to the next.
Weekday Index
A numeric label for each day of the week, with the common JavaScript convention being Sunday=0 through Saturday=6. The calculator exposes this index so a single value can be pasted into a spreadsheet or programming language.
ISO 8601 Weekday Number
An international numbering system where Monday=1 and Sunday=7. ISO 8601 avoids the ambiguity of Sun=0 conventions and is used by European payroll systems, ISO week-date calendars, and international APIs.
Gregorian Leap Year Rule
A year is a leap year when it is divisible by 4, except for years divisible by 100 that are not also divisible by 400. 2024 is a leap year; 1900 was a common year; 2000 was a leap year.
Day-of-Year Ordinal
A running count of calendar days from 1 January (day 1) to 31 December (day 365 in a common year, day 366 in a leap year). The ordinal shares the same Gregorian month-length sequence, so the leap-day shift moves every date from 1 March onward by one position.
These four ideas cover every output the calculator returns, so reading the result panel alongside the key concepts makes it easy to translate the weekday lookup into a scheduling or programming decision.
When the weekday matters because you are scheduling around a movable holiday, Easter Calculator returns the date and weekday of Easter for any year using the same Gregorian month-length rules.
How to Use the Weekday Calculator
Run a clean weekday lookup in four short steps. The result panel updates as you type, so you can compare dates and leap years without reloading.
- 1 Type the date you want to look up: Enter a date in YYYY-MM-DD order, for example 2026-07-04, in the Date field. Leave the field blank to see today's weekday, ISO weekday, ISO week number, day of year, and leap-year flag.
- 2 Read the weekday name and numeric index: Use the Weekday label for the plain-English day of the week and the Weekday Index (Sun=0) and ISO Weekday (Mon=1) rows to copy a numeric value into a spreadsheet or a programming helper.
- 3 Check the ISO week number and day of year: Read ISO Week Number for the week used by international project plans and payroll cycles, and read Day of Year for the ordinal position in the calendar year.
- 4 Confirm the leap-year flag: Read Leap Year to see whether the entered date falls in a common year (No) or a leap year (Yes), so you can verify February 29 inputs and trace the day-of-year shift for March 1 onward.
Leave the date field blank to see today's weekday alongside the same day's ISO week number, ISO weekday, day-of-year ordinal, and leap-year flag. Switch to 2024-02-29 to confirm the 2024 leap day falls on a Thursday in ISO week 9.
When the weekday lookup is the first step in a date-arithmetic workflow such as adding days or counting forward to a deadline, Date Calculator accepts the same YYYY-MM-DD input and returns the resulting date alongside its weekday and day-of-year.
Benefits of Using the Weekday Calculator
The calculator replaces a mental calendar lookup, a programming library, and a leap-year edge-case check with one screen of results.
- • One Field, Six Verified Answers: Type a single date and read the weekday name, weekday index, ISO weekday, ISO week number, day of year, and leap-year flag in one place.
- • Live Today Mode: Leave the field blank to see today's weekday, ISO week number, and leap-year flag without typing the current date.
- • ISO 8601 Ready: The ISO weekday and ISO week number use the same Monday=1 and Thursday-anchored rules as ISO 8601, so the result panel lines up with European payroll cycles and ISO week-date calendars.
- • Leap-Year Safe: The Gregorian leap-year rule is applied first, so 29 February 2024 returns the correct 60th day of the year while 29 February 1900 and 29 February 2025 are rejected with a validation error.
- • Real-Time Recalculation: The result panel updates as the date changes, which makes it easy to compare a date in a common year against the same date in a leap year.
Most weekday lookups are quick everyday questions, so the calculator returns just the answers you need without the overhead of a full calendar view.
When the ISO weekday and ISO week number need to feed into a multi-week schedule or a recurring payroll cycle, Week Calculator applies the same Monday-anchored ISO 8601 rules across two dates and reports complete weeks plus leftover days.
Factors That Affect the Weekday Calculator Result
The weekday formula is constant, but a handful of calendar rules change the answer by an entire weekday or trigger a validation error.
Leap Year Status
A leap year adds one extra day (29 February), which shifts the weekday for every date from 1 March onward by one compared with a common year.
Centurial Year Exception
Years divisible by 100 are leap years only when they are also divisible by 400. 2000 was a leap year because it is divisible by 400, but 1900 was a common year, so 29 February 1900 is rejected by the calculator.
ISO 8601 Week Boundary
ISO weeks run Monday through Sunday and week 1 contains the year's first Thursday. A date in early January can belong to ISO week 52 or 53 of the previous calendar year, which is why 1 January 2000 returns ISO week 52 of 1999.
Input Format
The calculator expects YYYY-MM-DD with four-digit year, two-digit month, and two-digit day. Strings like 2024/02/29, 2024-2-29, or 2024-13-40 are rejected with a validation error so users fix the typo before reading a weekday.
- • The calculator accepts Gregorian dates between 1900-01-01 and 2100-12-31. Dates outside this range, including most pre-Gregorian and far-future dates, are rejected because the leap-year rule and the ISO week algorithm assume the modern Gregorian calendar.
- • The result panel reflects the calendar date only; it does not include a local time zone, daylight-saving shifts, or a Julian day number. Use a dedicated time-zone calculator when the same date needs to be anchored to a wall-clock event.
According to U.S. Naval Observatory Astronomical Applications Department, a Gregorian year is a leap year if it is divisible by 4, except for years divisible by 100 that are not also divisible by 400.
According to Encyclopædia Britannica: Gregorian calendar, the Gregorian calendar assigns 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, and 31 days to January through December in a common year and extends February to 29 days in a leap year.
When the weekday matters because the date is also a seasonal milestone, Days Until Fall Calculator counts the days until the autumn equinox using the same Gregorian calendar arithmetic.
Frequently Asked Questions
Q: How do you find the day of the week for any date?
A: Count the whole UTC days between a known anchor date (the Unix epoch 1 January 1970, a Thursday) and the target date, take the remainder when divided by 7, and map the remainder to a weekday name. The weekday calculator performs that count for any YYYY-MM-DD date in the supported range 1900-01-01 to 2100-12-31.
Q: What day of the week was I born?
A: Type your birth date in YYYY-MM-DD order into the Date field and read the weekday name from the Weekday row of the result panel. For example, 1990-05-15 returns Tuesday, weekday index 2, and ISO weekday 2, so you can plan a Tuesday birthday celebration or align the anniversary with a school or work schedule.
Q: Is the weekday calculator accurate for years before 1900?
A: The calculator accepts Gregorian dates between 1900-01-01 and 2100-12-31 and applies the modern Gregorian leap-year rule, including the centurial-year exception. Dates outside the supported range are rejected with a validation error so the result always matches a real Gregorian weekday.
Q: What is the difference between weekday number and ISO weekday?
A: The Weekday Index row counts Sunday=0 through Saturday=6, which is the convention used by JavaScript Date.getUTCDay() and many spreadsheet formulas. The ISO Weekday row counts Monday=1 through Sunday=7, which is the convention published by ISO 8601 for international calendars, payroll cycles, and ISO week-date formats.
Q: Does the weekday calculator handle leap years?
A: Yes. The Gregorian leap-year rule is applied before the day-of-year ordinal is computed, so 29 February 2024 returns the 60th day of a leap year while 29 February 2025 and 29 February 1900 are rejected with a clear validation error. The leap-year flag is also returned so you can confirm the rule without re-entering the date.
Q: How do I find what day of the week a future date falls on?
A: Type the future date in YYYY-MM-DD order into the Date field and read the Weekday row of the result panel. The calculator updates in real time, so you can compare several candidate dates side by side to pick the day of the week that matches a wedding, court date, release window, or surgery schedule.