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

# Date with a Spanish month name (`date_spanish`)

> **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 in Spanish with the month name, day first, with or without the preposition de: 5 de mayo de 2022, 5 mayo 2022, 5 de may de 2022, optionally after the weekday (jueves, 5 mayo 2022). The month-first form mayo 5, 2022 is accepted too.

- Pattern of: `date`
- Personal data (PII): no
- Categories: Date and time (datetime)
- Countries: global
- Languages: Spanish (es)

## Detection

Regular expression (Python `re`):

```
^(?:(?:(?:[Ll]unes|[Mm]artes|[Mm]iércoles|[Jj]ueves|[Vv]iernes|[Ss]ábado|[Dd]omingo),? )?(?:0?[1-9]|[12]\d|3[01]) (?:[Dd]e (?:[Ee]ne(?:ro)?|[Ff]eb(?:rero)?|[Mm]ar(?:zo)?|[Aa]br(?:il)?|[Mm]ayo?|[Jj]un(?:io)?|[Jj]ul(?:io)?|[Aa]go(?:sto)?|[Ss]ep(?:tiembre)?|[Oo]ct(?:ubre)?|[Nn]ov(?:iembre)?|[Dd]ic(?:iembre)?)(?: [Dd]e|,)|(?:[Ee]ne(?:ro)?|[Ff]eb(?:rero)?|[Mm]ar(?:zo)?|[Aa]br(?:il)?|[Mm]ayo?|[Jj]un(?:io)?|[Jj]ul(?:io)?|[Aa]go(?:sto)?|[Ss]ep(?:tiembre)?|[Oo]ct(?:ubre)?|[Nn]ov(?:iembre)?|[Dd]ic(?:iembre)?),?) \d{4}|(?:[Ee]ne(?:ro)?|[Ff]eb(?:rero)?|[Mm]ar(?:zo)?|[Aa]br(?:il)?|[Mm]ayo?|[Jj]un(?:io)?|[Jj]ul(?:io)?|[Aa]go(?:sto)?|[Ss]ep(?:tiembre)?|[Oo]ct(?:ubre)?|[Nn]ov(?:iembre)?|[Dd]ic(?:iembre)?) (?:0?[1-9]|[12]\d|3[01]), \d{4})$
```

## Examples

- `25 de diciembre de 2024` — 25 December 2024
- `25 diciembre 2024` — Without the preposition
- `Miércoles, 25 Diciembre 2024` — With the weekday
- `diciembre de 2024` (invalid example)
- `25 de december de 2024` (invalid example)

## Mappings

- qddate: `dt:date:es_base`, `dt:date:es_base_lc`, `dt:date:es_base_article`, `dt:date:es_base_lc_article`, `dt:date:es_rare_1`, `dt:date:es_rare_2`, `dt:date:es_short`, `dt:date:es_short_lc`, `dt:date:es_short_monthfirst`, `dt:date:es_short_lc_monthfirst`, `dt:date:es_weekday`, `dt:date:es_weekday_lc`

## Supported by tools

- `qddate`

## Translations

- ru: Дата с испанским названием месяца: Календарная дата на испанском языке с названием месяца, например 5 de mayo de 2022.

## Sources

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

## Quality

Score 100/100.

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