Day of the Week Calculator

Which weekday any date falls on, plus its day of the year and ISO week.

Enter details

Day of the week

Saturday

Day of the year
185
ISO week number
27
Full date
Sat, July 4, 2026

Formula: Gregorian calendar, ISO 8601 week numbers

Day of the Week Calculator: Find Weekday, Day & ISO Week

Short answer

The Day of the Week Calculator determines the specific weekday, cumulative day of the year, and ISO 8601 week number for any specified date. For example, entering July 4, 2026, reveals that the date falls on a Saturday, represents day 185 of the year, and belongs to ISO week number 27.

Formula

w = (d + ⌊2.6m - 0.2⌋ - 2C + Y + ⌊Y / 4⌋ + ⌊C / 4⌋) mod 7

w represents the weekday index where 0 = Sunday, 1 = Monday, ..., 6 = Saturday; d is the day of the month; m is the shifted month number where March is 1 through December is 10, while January is 11 and February is 12 of the previous year; C is the century (the first two digits of the four-digit year); Y is the remaining two digits of the year; and ⌊ ⌋ denotes the floor function (rounding down to the nearest integer).

Worked example

Date
2026-07-04
  • Day of the week: Saturday
  • Day of the year: 185
  • ISO week number: 27
  • Full date: Sat, July 4, 2026

What the Day of the Week Calculator Calculates

The Day of the Week Calculator determines the day of the week, the ordinal day of the year, and the formal ISO 8601 week number for any specified date. Whether you are scheduling future corporate milestones, tracking payroll reporting cycles, or looking up historical events, calendar math requires precise coordination across varying month lengths and leap years.

This tool processes three core parameters:

  • Day of the Week: Identifies which of the seven days (Sunday through Saturday) a date occupies.
  • Day of the Year: The cumulative count of days elapsed from January 1 through the specified date (from 1 to 365 in common years, or 1 to 366 in leap years).
  • ISO Week Number: The standardized corporate and manufacturing week definition defined by the International Organization for Standardization (ISO 8601).

Step-by-Step Worked Example

To see how the underlying math functions, let us compute the exact values for the date July 4, 2026.

1. Identify Calendar Properties

  • Year: 2026 (Common year, not divisible by 4; February has 28 days)
  • Target Month: July (Month 7)
  • Target Day: 4

2. Calculate the Day of the Year

We sum the days in the preceding months and add the target day:

  • January: 31
  • February: 28
  • March: 31
  • April: 30
  • May: 31
  • June: 30

Sum of completed months: $$\text{Completed Days} = 31 + 28 + 31 + 30 + 31 + 30 = 181$$

Add the current day of July: $$\text{Day of the Year} = 181 + 4 = 185$$

3. Determine the Day of the Week

Using standard calendar offsets for 2026:

  • January 1, 2026 fell on a Thursday (weekday index 4, using Sunday = 0).
  • Number of elapsed days since January 1 = $185 - 1 = 184$.
  • Shift: $184 \pmod 7 = 2$.
  • Adding 2 days to Thursday yields Saturday.

4. Determine the ISO Week Number

Under ISO 8601, weeks begin on Monday and Week 1 contains the year's first Thursday:

  • In 2026, January 1 was a Thursday, which means Week 1 began on Monday, December 29, 2025.
  • July 4 is day 185 of the year and falls on Saturday.
  • Mapping the date to the nearest Thursday gives Thursday, July 2 (day 183).
  • Computing the elapsed full 7-day blocks: $\lfloor (183 - 1) / 7 \rfloor + 1 = 27$.
  • ISO Week Result: Week 27.

Output Summary:

  • Day of the week: Saturday
  • Day of the year: 185
  • ISO week number: 27
  • Full date: Sat, July 4, 2026

How to Read and Interpret the Results

  • Day of the Week: Essential for logistical planning, event venues, shipping transit windows, and identifying whether a target falls on a standard working business day or weekend.
  • Day of the Year (1–366): Frequently used in astronomy, meteorology, data logging, and batch manufacturing codes (often referred to as Julian dates in logistics).
  • ISO Week Number (1–53): A core metric for global supply chains, international production planning, and financial reporting. Unlike simple calendar quarters, ISO weeks never break a week across two years; the whole week belongs to the year with the majority of its days.

Practical Scheduling Tips

  1. International Communication: When collaborating across borders, specify the weekday name alongside the numerical date to avoid errors caused by differing regional formats ($MM/DD/YYYY$ vs. $DD/MM/YYYY$).
  2. Financial and Supply Chain Cycles: Ensure your accounting software aligns with ISO 8601 if you conduct business in Europe or with multinational logistics providers.
  3. Accounting for Leap Years: Leap days (February 29) add an offset of 1 to all subsequent days of the year, shifting day-of-the-week progressions by two days in leap years instead of the standard one-day annual shift.

Limitations and When Not to Rely on It

This calculator utilizes the standard modern Gregorian calendar. When evaluating historical events that occurred prior to the widespread adoption of the Gregorian system (introduced by Pope Gregory XIII in October 1582, and adopted by Britain and its colonies in September 1752), results will reflect the proleptic Gregorian date rather than the Julian calendar day observed at that historical time.

Comparison

ScenarioInputResult
Base exampleDate: 2026-07-04Day of the week: Saturday

Common mistakes

  • Assuming every year has exactly 52 ISO weeks, overlooking 53-week leap years.
  • Confusing the calendar week number with the ISO 8601 week number, which strictly treats Monday as day 1 and assigns Week 1 to the week containing the first Thursday of January.
  • Applying standard Gregorian arithmetic to dates prior to 1582 without adjusting for the Julian calendar changeover.
  • Forgetting that January and February count as months 13 and 14 of the prior year in Zeller's congruence and similar weekday algorithms.
  • Swapping month and day digits when working with international formats (e.g., 07/04 versus 04/07).

Checklist

  • Verify whether the date falls in a leap year to properly interpret annual day counts.
  • Confirm your regional week start standard (Sunday in the US vs. Monday under ISO 8601).
  • Account for historical calendar shifts if calculating dates prior to October 15, 1582.
  • Check business payroll cutoff schedules against standard ISO week numbering.
  • Ensure cross-system date entries use the standardized YYYY-MM-DD format to prevent month-day transposition.

Calculators Percentage Editorial Team

Calculator guides from the Calculators Percentage team. These introductory examples are educational, not professional advice.

Last reviewed:

This calculator operates according to standard Gregorian and ISO 8601 calendar conventions. It is designed for general scheduling, project management, and planning purposes.

Frequently Asked Questions

How does the Day of the Week Calculator determine the weekday?

The calculator implements the proleptic Gregorian calendar algorithm, mathematically equivalent to Zeller's congruence. It calculates the cumulative total of elapsed days from a set epoch date, divides the total by 7, and matches the remainder to a standard weekday name.

What is an ISO week number?

Defined by the ISO 8601 standard, an ISO week starts on Monday and ends on Sunday. Week 01 of any given year is defined as the week that contains the first Thursday of that calendar year, ensuring that at least four days of that week fall in the new year.

Can a date in January belong to the previous year's ISO week?

Yes. If January 1 falls on a Friday, Saturday, or Sunday, it falls into the final week (Week 52 or 53) of the previous calendar year. Conversely, dates in late December can belong to Week 01 of the subsequent year if the majority of the week falls in January.

How is the day of the year calculated?

The day of the year is calculated by summing the total days in all completed calendar months prior to the target date, adding the day number of the current month, and factoring in an additional day if the year is a leap year (divisible by 4, except for century years not divisible by 400).

Does this calculator work for historical dates before 1582?

The calculator projects the Gregorian calendar backward (known as the proleptic Gregorian calendar). Because most European countries operated on the Julian calendar until October 1582 or later, historical weekdays from earlier eras may differ from local records of the time.

Why do some years have 53 ISO weeks?

Because standard years have 365 days (52 weeks plus 1 day) and leap years have 366 days (52 weeks plus 2 days), the calendar slowly shifts. Any year that starts on a Thursday, or a leap year starting on a Wednesday, will contain 53 ISO weeks.

Sources & references

Formulas are tested against hand-checked answers. How we check our calculators.

Estimates only. Confirm final figures, terms and fees with your bank, provider or a qualified professional.

Last updated: January 15, 2026