ISO week numbering has its own year boundary. A late-December calendar date can belong to week one of the next ISO year.
Worked example
from datetime import date
print(date.fromisocalendar(2026, 1, 1))Result
2025-12-29Implementation notes
ISO weeks start on Monday, and week one contains the year's first Thursday. This explains the surprising year near the boundary without relying on a list of exceptions.
Try it yourself
Convert an ISO week date near New Year's Day and inspect the calendar year.
Open the Python example →Editorial date September 11, 2025 · Published December 6, 2026