To calculate the week number for a date in a month, use the ISO 8601 label YYYY-Www: choose the target Gregorian date, calculate its ISO week, and read the four-digit week-year and two-digit week number. The Week Number Calculator performs that task for any valid Gregorian date. This gives the date’s position in an annual ISO week sequence rather than a fresh counter that resets on the first of each month. The tool also returns a weekday number where Monday is 1 and Sunday is 7. It runs locally with UTC calendar arithmetic, so browser location, time zone, and daylight-saving changes do not shift the selected date. ISO Week 1 is the week containing January 4, equivalently the week containing the year’s first Thursday, and ISO weeks always begin on Monday. Because the week-year follows the Thursday, January 1 can belong to the previous ISO year and late December can belong to the next one. The returned YYYY-Www label is the right result for standards-based filenames, planning, reporting, and development when every participant expects ISO 8601; it is not an automatic answer for payroll, tax, legal, fiscal, retail, or locale-specific week rules.

Distinguish ISO weeks from week-of-month labels
The phrase “week number in a month” can describe two different tasks. One asks which ISO week contains a selected date. The other asks for the date’s numbered position inside a particular month, such as the first or second week of March. ISO 8601 does not define that month-relative position because its weeks run continuously across month boundaries and reset only at the ISO week-year boundary.
Before assigning a label, identify which convention the recipient expects. A month-relative system may start weeks on Sunday, may treat the opening partial week differently, or may use an organization-specific calendar. The same date can therefore have one ISO week number and a different week-of-month number. If the question is how many weeks fit inside a month, that is a month-length calculation rather than a date-to-week lookup.
| What you need | Numbering behavior | Correct action |
|---|---|---|
| ISO week identifier for a selected date | Uses an annual ISO sequence with Monday as day 1 | Use the Week Number Calculator and its YYYY-Www result |
| Position within a named month | Depends on the defined week start and treatment of the first partial week | Confirm the local numbering rule before assigning a month-relative label |
| Fiscal, payroll, retail, or locale week | May use a different week-year, starting day, or period pattern | Follow the relevant policy, organization, or vendor specification |
Calculate the ISO week number for a date in a month
Use the calculator in this order to obtain a standards-based identifier without counting backward from January manually. It handles ordinary dates, New Year boundaries, and ISO week-years containing either 52 or 53 weeks.
- Choose or enter a valid Gregorian date. When entering the date manually, the parser accepts a strict YYYY-MM-DD value. An impossible date such as 2023-02-29 fails visibly instead of producing an unreliable week label.
- Select Calculate ISO week. The calculation uses the selected calendar fields with UTC arithmetic, so the browser’s time zone and daylight-saving settings cannot move the date into an adjacent day.
- Use the returned YYYY-Www label only where ISO 8601 week rules are required. Read the four-digit week-year and two-digit week number from the label, and use the separate weekday result when Monday-through-Sunday context is needed.
Internally, the calculator validates the Gregorian date by a round-trip check, finds the Thursday in the same ISO week, and uses that Thursday’s year as the week-year. It then counts complete seven-day blocks from January 1 and formats the result as YYYY-Www. This is why the displayed year is the ISO week-year rather than automatically the year attached to the date field.
Read each part of the returned label
ISO notation separates three pieces of information. The label combines the week-year and week number, while the calculator also presents the weekday number. Read them as distinct fields rather than treating the entire string as a calendar date.
| Returned item | Format | Meaning |
|---|---|---|
| ISO week-year | YYYY | The calendar year containing the Thursday of that ISO week |
| ISO week number | Www | The two-digit week within the ISO week-year, ranging from W01 through W53 |
| ISO weekday number | 1 through 7 | Monday is 1, and Sunday is 7 |
The YYYY component does not always match the first four digits of the selected date. That is correct behavior near a year boundary because the ISO week-year follows the week’s Thursday. Likewise, Www is an annual week number, so it continues across January and December rather than restarting whenever the month changes. Use the full label to retain both the ISO week-year and week number.
Handle New Year and 53-week boundaries
ISO numbering resolves year-end ambiguity through two rules: weeks begin on Monday, and Week 1 contains January 4. The Thursday of a week determines its ISO week-year. If that Thursday falls in the next calendar year, the entire week is assigned to that next ISO week-year. This is why January 1 can carry a label from the previous year and late December can carry a label from the following year.
Worked example: enter 2024-12-30. The same-week Thursday is 2025-01-02, so the Thursday-based ISO week-year is 2025. That week also contains January 4, the anchor for Week 1, so the calculator returns 2025-W01. The selected calendar date is in 2024, but its ISO week-year is 2025.
Some ISO week-years contain 53 Mondays and therefore include W53. The calculator accounts for these long week-years as part of its boundary validation, rather than assuming that every year ends at W52. That makes the result suitable when a reporting or file-naming system has explicitly adopted ISO 8601.
Match the result to the required calendar
The Week Number Calculator calculates ISO week dates only. Sunday-start calendars, systems with a partial Week 1, fiscal calendars, retail 4-4-5 calendars, and locale-specific numbering can return another value for the same date. Use the ISO output for standards-based filenames, planning, reporting, and development when all parties have agreed on ISO 8601.
For payroll, tax, legal deadlines, fiscal reporting, or a vendor API, verify the exact calendar convention required by that system. An internally consistent ISO result is not automatically the field that an external system expects. Also preserve the convention alongside stored results so a later reader knows whether W07 means an ISO week or a locally defined week. For a spreadsheet workflow that explicitly requires month-relative numbering, compare that rule with how to calculate week number in a month in Excel before choosing a formula.
Check the result before using it
A final quick review prevents most week-labeling errors:
- Confirm that the selected Gregorian date is the intended date.
- Confirm that the receiving system requires ISO 8601 rather than a fiscal, retail, locale, or Sunday-start convention.
- Read the week-year from the returned label, not solely from the date’s calendar year.
- Keep Monday-to-Sunday ordering in mind when interpreting the weekday number.
- Verify high-stakes deadlines or API values against the organization’s governing specification.
For a deeper look, see Day of the Week Calculator Explained: How It Works.