Date with a Spanish month name
ID date_spanish
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 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
date - Categories
- Date and time
- Countries
- Global (not tied to a country)
- Languages
- Spanish
- qddate pattern
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- Quality
- 100/100
- Metacrafter rules
- no detection rule yet
- Supported by tools
- qddate
Regular expression
^(?:(?:(?:[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})$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 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 | |
| 25 de december de 2024 invalid |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Дата с испанским названием месяца | Календарная дата на испанском языке с названием месяца, например 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
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/date_spanish - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/datetime/date_spanish.yamlon GitHub