Current Week Number
How This Converter Works
Displays the ISO-style week number for the current client-local calendar date. The date is evaluated once when the page loads; only the week number, not the week-year, is displayed.
Formula or rule
Move the date to its week Thursday, then week = ceil((((Thursday - Jan 1 of its UTC year) / 86400000) + 1) / 7).
Example
- Input
- Illustrative date: 2021-01-01
- Calculation
- January 1, 2021 belongs to the ISO week that began in 2020.
- Result
- Week 53