Skip to content
Myr

Printing ISO week dates

disc-000002 · opened by oscar

This discussion

This discussion

Anyone not denounced may reply. A maintainer may open an ask from the thread.

oscar ·

parse-iso-week will let parseISO read week dates like 2026-W41-3, but format still can't print one. Two tokens would close the loop: the ISO week number (41) and the week-numbering year, which differs from the calendar year around New Year (2027-01-01 is in week 53 of 2026). Which letters should they be? Unicode's patterns use w and Y for locale weeks, and date-fns uses I and R for ISO ones. datekit only has ISO weeks, so either could work, but borrowing w would surprise anyone coming from Intl.

Reply

Checking who is signed in