Datatypes › date

Date as YYYYMMDD

ID date_ymd_compact

Pattern of dateNot PIIDraft

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).

Calendar date written as eight digits without separators: four-digit year, two-digit month and two-digit day, for example 20241225. This is the basic format of ISO 8601, common in file names, logs and database exports. A column of such values is easy to take for integers.

Pattern of
Date date
Categories
Date and time
Countries
Global (not tied to a country)
Languages
Common to most languages
qddate pattern
dt:date:date_6
Quality
100/100
Metacrafter rules
no detection rule yet
Supported by tools
qddate

Regular expression

^\d{4}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])$

Python re syntax.

Examples

ValueDescription
2024122525 December 2024
202205055 May 2022
25122024 invalid
2024-12-25 invalid

Translations

LanguageNameDescription
RussianДата в формате ГГГГММДДКалендарная дата из восьми цифр без разделителей: год, месяц и день, например 20241225. Это базовый формат ISO 8601.

Sources

Use this record