Datatypes › Date and time

ISO 8601 year and week

ID iso_week

DatatypeNot PIIcategoricalDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

A calendar week written as an ISO 8601 week date without the day, the week-numbering year, the letter W and a two-digit week from 01 to 53, in extended (2021-W05) or basic (2021W05) form. ISO weeks start on Monday, and week 01 is the week with the first Thursday of the year, so the week-numbering year can differ from the calendar year near 1 January. The regexp does not check that week 53 exists in the given year.

Categories
Date and time
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
90/100 · missing: mapping (Wikidata, Schema.org, ...)
Metacrafter rules
1 rule (1 by field name, 0 by value)
Supported by tools
metacrafter

Regular expression

^\d{4}-?W(?:0[1-9]|[1-4]\d|5[0-3])$

Python re syntax.

Test a value

Examples

ValueDescription
2021-W05 extended format
2021W05 basic format
2020-W53 2020 has 53 ISO weeks
2021-W54 invalid week out of range
2021-5 invalid no W designator

Translations

LanguageNameDescription
RussianНеделя по ISO 8601
FrenchSemaine ISO 8601

Sources

Use this record