Formula applied
The exact method behind this answer
CalculationTime keeps the method visible so the number can be checked instead of blindly trusted.
ISO week number: convert the date to a UTC Gregorian date, move to the Thursday in the same Monday-starting week, set the ISO week-year from that Thursday, then count seven-day blocks from the Thursday in ISO week 1.- Apply the formulaISO week number: convert the date to a UTC Gregorian date, move to the Thursday in the same Monday-starting week, set the ISO week-year from that Thursday, then count seven-day blocks from the Thursday in ISO week 1.ISO week 21 of 20262026-05-18 is Monday, ISO weekday 1. The Thursday anchor is 2026-05-21, so the date belongs to ISO week-year 2026 and week 21.