Date lookup
Week Number Calculator
Enter a date to find its ISO week number, ISO week-year, US week number, weekday number, and day of year.
Week number for 2026-05-06
ISO and US week numbers with day-of-year context.
- ISO week
- 19
- ISO week year
- 2026
- ISO weekday
- 3
- US week number
- 19
- Day of year
- 126
ISO-8601 vs. US Standard Week Numbering Systems
When two teams look up the "current week number" and get answers that are one week apart, they are almost always mixing the international ISO-8601 week date system with the traditional US / North American Sunday-start calendar system. Because a 365-day common year equals 52 weeks plus 1 extra day (and a 366-day leap year equals 52 weeks plus 2 extra days), calendar years never divide evenly into seven-day blocks. Each numbering standard resolves those leftover boundary days differently.
Under ISO-8601, every week is an unbroken seven-day Monday-through-Sunday period assigned wholly to whichever year holds at least four of its days (equivalently, whichever year holds that week's Thursday). Under standard US numbering, Week 1 starts strictly on January 1—creating a short partial week at the start of January and another partial week at the end of December. For a deeper walkthrough of edge cases, read our complete guide to ISO-8601 vs. US week numbers, or browse full annual tables for 2026 week numbers and 2027 week numbers.
| Rule / Attribute | ISO-8601 Week System | US / North American System |
|---|---|---|
| First Day of Week | Monday (Day 1 = Mon, Day 7 = Sun) | Sunday (Day 1 = Sun, Day 7 = Sat) |
| Week 1 Definition | Week with the year's first Thursday (always includes Jan 4; 4+ days in new year) | Begins on January 1, regardless of weekday |
| Partial Boundary Weeks | Never — every ISO week is a full 7-day Monday–Sunday block | Yes — Week 1 and Week 53/54 are 1–6 days long unless bounded by Sun/Sat |
| Weeks Per Year | 52 full weeks (364 days) or 53 full weeks (371 days in leap-week years) | 53 week labels in almost all years; 54 labels if a leap year starts on Saturday |
| Year-End Crossovers | Dec 29–31 can belong to next year's W01; Jan 1–3 can belong to prior year's W52/W53 | Week-year always matches the Gregorian calendar year of the date |
| Standard Notation & Users | YYYY-Www (e.g., 2026-W24) — ERP, freight, manufacturing, EU/global SaaS | Week 1–53 — US consumer planners, retail store calendars, domestic media |
Spreadsheet, SQL & Code Formulas for Week Numbers
A common cause of reporting bugs in BI dashboards and ERP exports is pairing an ISO week number with a standard calendar year around New Year's Day. For example, formatting December 30, 2025 with calendar year YYYY plus ISO week IW produces 2025-W01—pointing to the wrong end of the year by 52 weeks! Whenever you extract ISO weeks in SQL or code, always extract the matching ISO week-numbering year alongside the week index.
| Platform / Language | ISO-8601 Week Formula | US Sunday-Start Formula & Notes |
|---|---|---|
| Excel & Google Sheets | =ISOWEEKNUM(A1) or =WEEKNUM(A1, 21) | =WEEKNUM(A1, 1) Return type 1 = Sunday start, Jan 1 = Week 1 |
| PostgreSQL | EXTRACT(WEEK FROM dt) TO_CHAR(dt, 'IYYY-"W"IW') | Always pair IW with ISO year IYYY (never YYYY) to prevent Dec/Jan rollover bugs |
| MySQL / MariaDB | WEEK(dt, 3) YEARWEEK(dt, 3) | WEEK(dt, 0) Mode 3 = ISO-8601 (1–53); Mode 0 = Sunday start (0–53) |
| Python (datetime) | dt.isocalendar() dt.strftime("%G-W%V") | dt.strftime("%U")%G/%V = ISO year & week; %U = Sunday-based week (00–53) |
| JavaScript (UTC) | Shift UTC date to nearest Thursday: d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7)), then divide days since Jan 1 by 7 | Native Date has no built-in getWeek(); compute in UTC to avoid Spring/Fall DST off-by-one-hour shifts |
How Supply Chains, Manufacturing & 4-4-5 Retail Accounting Use Week Numbers
Manufacturing Lead Times & Freight Windows (e.g., W24 Delivery)
Automotive, electronics, and industrial suppliers schedule factory capacity and container vessel sailings by ISO week—such as "Ex-Works W19 / Warehouse ETA W24." Using week codes solves two operational headaches at once: first, a cross-border purchase order stating 04/07/2026 cannot be misread as April 7 in Chicago and July 4 in Hamburg; second, ocean port congestion and customs clearance make week-level slotting far more accurate for dock and labor planning than single-day promises.
4-4-5 / 4-5-4 Retail Accounting & Sprint Cadences
Standard calendar months vary from 28 to 31 days and contain either four or five weekends, distorting month-over-month revenue comparisons for retailers, restaurants, and hospitality groups. Under a 4-4-5 or NRF 4-5-4 fiscal calendar, every quarter equals exactly 13 full weeks (91 days) subdivided into two 4-week periods and one 5-week period. Every fiscal period contains the exact same number of Saturdays and Sundays year after year, with a 53rd leap week added once every five to six years—such as in ISO leap-week year 2026—to realign the fiscal calendar with the seasons.
More work calendar tools
Related tools
Use these calculators when your next step is a date count, a workday offset, or a calendar export.
Business Days Calculator
CSV + ICSCount working days between two dates, exclude weekends and US federal holidays, and export schedules.
Add Business Days Calculator
CSVProject commercial SLA deadlines by adding or subtracting business days while skipping weekends and holidays.
Working Days Calculator
CSV + ICSCalculate net working days and billable hours across project windows with statutory holiday adjustments.
Date Calculator
CSVCalculate total elapsed calendar days or add/subtract days from any anchor date with CSV export.
Days Between Dates Calculator
CSVBreak down elapsed calendar days, weekdays, and weekend days with boundary inclusion controls.
Add Days to Date Calculator
CSVAdd or subtract calendar days from a start date for notice periods, renewals, and milestone tracking.
Working Days in 2026
CSV + ICSMonth-by-month breakdown of 2026 weekdays, federal holidays, and 2,088 gross work hours.
Working Days in 2027
CSV + ICSMonth-by-month breakdown of 2027 weekdays, observed holidays, and annual billable hours.
Week Numbers 2026
CSVComplete 2026 week calendar including the rare 53-week ISO year (2026-W53) boundary dates.
Week Numbers 2027
CSVComplete 2027 week calendar comparing 52-week ISO boundaries against US week numbering.