---
id: "date_dmy_dash_yy"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["datetime"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/date_dmy_dash_yy"
---

# Date as DD-MM-YY (`date_dmy_dash_yy`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Calendar date written as day, month and two-digit year separated by hyphens, for example 25-12-24. The century is not written and has to be inferred.

- Pattern of: `date`
- Personal data (PII): no
- Categories: Date and time (datetime)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

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

## Examples

- `25-12-24` — 25 December 2024
- `05-05-22` — 5 May 2022
- `25-12-2024` (invalid example)

## Mappings

- qddate: `dt:date:date_iso8601_short`

## Supported by tools

- `qddate`

## Translations

- ru: Дата в формате ДД-ММ-ГГ: Календарная дата: день, месяц и год из двух цифр через дефис, например 25-12-24.

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/List_of_date_formats_by_country>
- other: <https://github.com/ivbeg/qddate/blob/v1.1.0/qddate/patterns/base.py>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/date_dmy_dash_yy.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/date_dmy_dash_yy.yaml>
