Week number and day of year

Week number for any date: ISO 8601 week and week-numbering year, US week number, day of the year, days left in the year and the quarter.

업데이트 검증한 예제: 5

= 2026-09-29
시도하기
ISO week
ISO week: 40
정수; 가장 가까운 값, 중간값은 0에서 먼 쪽으로
ISO week-numbering year
2026
ISO week date
2026-W40-2
Day of the year
272
Days left in the year
93
Days in the year
365
Quarter
3
Weeks in that ISO year
53
US week number (Sunday start)
40
Year elapsed
74.5%

Tue 29 Sep 2026 is in ISO week 40 of 2026 (2026-W40-2), day 272 of 365 with 93 days left, in Q3.

2026 by quarter

Q1: 1 Jan 2026 to 1 Apr 2026Q1Q2: 1 Apr 2026 to 1 Jul 2026Q2Q3: 1 Jul 2026 to 1 Oct 2026Q3Q4: 1 Oct 2026 to 1 Jan 2027Q4Week 40Day 272 · Tue 29 Sep 2026
계산 방법 S
  1. Weekday

    Tue 29 Sep 2026 is a Tuesday, ISO weekday 2 (Monday = 1).

  2. Find that week's Thursday

    ISO weeks run Monday to Sunday and belong to the year that contains their Thursday. This week's Thursday is Thu 1 Oct 2026, so the week-numbering year is 2026.

  3. 주차 번호

    ⌊274−17⌋+1=40\left\lfloor \frac{274 - 1}{7} \right\rfloor + 1 = 40

    274 is the Thursday's day of the year.

  4. Day of the year

    N(date)−N(1 Jan)+1=272,365−272=93 days leftN(\text{date}) - N(\text{1 Jan}) + 1 = 272,\qquad 365 - 272 = 93\ \text{days left}
  5. US week number

    ⌊272−1+47⌋+1=40\left\lfloor \frac{272 - 1 + 4}{7} \right\rfloor + 1 = 40

    4 is 1 January's weekday counted from Sunday = 0; week 1 is the week containing 1 January.

Week number and day of year 소개

ISO 8601 weeks run from Monday to Sunday, and each week belongs to the year that contains its Thursday. Week 1 is therefore the week with the year's first Thursday, which is also the week containing 4 January. The calculator finds the Thursday of the date's week, takes its day of the year d, and computes ⌊(d − 1)/7⌋ + 1. It also gives the US-style number from Excel's WEEKNUM(date, 1), where weeks start on Sunday and week 1 is the week containing 1 January.

Week numbers appear in payroll periods, production plans and European business calendars. Near New Year the two systems part: 1 January 2027 is a Friday, so it falls in ISO week 53 of 2026 (2026-W53-5), while 30 December 2024 is already ISO week 1 of 2025 but US week 53 of 2024.

Day of the year counts 1 January as day 1, so 31 December is day 365, or 366 in a leap year.

계산 예제

1 January 2026 (a Thursday)

Date
2026-01-01
ISO week
1
ISO week-numbering year
2026
ISO week date
2026-W01-4
Day of the year
1
Days left in the year
364
Quarter
1
US week number (Sunday start)
1

검증 출처: Python 3.8: date(2026,1,1).isocalendar() = (2026, 1, 4); tm_yday = 1

1 January 2027 belongs to week 53 of 2026

Date
2027-01-01
ISO week
53
ISO week-numbering year
2026
ISO week date
2026-W53-5
Day of the year
1
Weeks in that ISO year
53

검증 출처: Python 3.8: date(2027,1,1).isocalendar() = (2026, 53, 5)

30 December 2024 is in week 1 of 2025

Date
2024-12-30
ISO week
1
ISO week-numbering year
2025
Day of the year
365
Days left in the year
1
Quarter
4
US week number (Sunday start)
53

검증 출처: Python 3.8: date(2024,12,30).isocalendar() = (2025, 1, 1); tm_yday = 365 in a 366-day year

Last day of a leap year

Date
2024-12-31
Day of the year
366
Days left in the year
0
Days in the year
366
Year elapsed
100.0%

검증 출처: Python 3.8: date(2024,12,31).timetuple().tm_yday = 366

자주 묻는 질문

How many weeks are there in a year?

52 or 53 ISO weeks. A year has 53 when it starts on a Thursday, or when it is a leap year starting on a Wednesday; that happens in 71 of every 400 years. 2020 and 2026 have 53 weeks, and the next are 2032 and 2037. 52 weeks cover only 364 days, so the spare day or two each year build up until a 53-week year absorbs them, usually 5 or 6 years apart.

Why do ISO and US week numbers differ?

They use different rules for the first week. ISO 8601 weeks start on Monday and week 1 contains the first Thursday of the year; Excel's ISOWEEKNUM follows this rule. The US convention, Excel's WEEKNUM with return type 1, starts weeks on Sunday and makes week 1 the week that contains 1 January, even if that week has only one day of the new year.

Can 1 January fall in week 52 or 53?

Yes, under ISO 8601 when 1 January is a Friday, Saturday or Sunday. 1 January 2027 is a Friday, so it belongs to week 53 of 2026 and ISO week 1 of 2027 starts on Monday 4 January. 1 January 2028 is a Saturday and falls in week 52 of 2027. In the other direction, 29 to 31 December can belong to week 1 of the next year.

Is the day of the year the same as the Julian date?

Only in informal use. In manufacturing and logistics a day-of-year code is often called a Julian date: 26 September 2026 is day 269, written 26269 in YYDDD form. Astronomers mean something else by Julian Day, a continuous count of days from 1 January 4713 BC in the Julian calendar; noon UTC on 26 September 2026 is Julian Day 2,461,310.

“Week number and day of year”의 정확도는 어느 정도인가요?

정확도는 입력값과 계산 방법의 가정에 따라 달라집니다. 십진 연산은 유효숫자 50자리를 사용하지만, 추정값·수치해석 방법·원본 데이터의 정밀도는 더 낮을 수 있습니다. 표시값을 반올림해도 이러한 한계는 사라지지 않습니다. 독립적인 출처의 풀이와 대조한 계산 예시: 5. 예를 들어 “1 January 2026 (a Thursday)”은 Python 3.8: date(2026,1,1).isocalendar() = (2026, 1, 4); tm_yday = 1와 대조해 확인합니다.

이 계산 방법의 출처는 무엇인가요?

ISO 8601-1:2019, §5.2.4 — week dates; Microsoft Excel ISOWEEKNUM and WEEKNUM functions.

이 계산기 소개

week=⌊day of year of that week’s Thursday−17⌋+1\text{week} = \left\lfloor \frac{\text{day of year of that week's Thursday} - 1}{7} \right\rfloor + 1

출처

  1. ISO 8601-1:2019, §5.2.4 — week dates
  2. Microsoft Excel ISOWEEKNUM and WEEKNUM functions

출처와 대조하여 검증

이 계산기에는 독립적인 출처에서 답을 얻은 계산 예제가 5개 있습니다. 테스트 모음에서 실행되며 여기에서도 실행할 수 있습니다.

관련 계산기