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
- 80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^\d{4}-?W(?:0[1-9]|[1-4]\d|5[0-3])$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 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
| Language | Name | Description |
|---|---|---|
| Russian | Неделя по ISO 8601 | |
| French | Semaine ISO 8601 |
Sources
- wikipedia: https://en.wikipedia.org/wiki/ISO_week_date
- wikidata: https://www.wikidata.org/wiki/Q2110154
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/iso_week - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/datetime/iso_week.yamlon GitHub