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)
isoweekbynamefield, common/periods.yaml
- 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
| 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: ISO week date (en.wikipedia.org)
- wikidata: 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