YMD Date (dot-separated)
Year.Month.Day with dot separators. Unambiguous due to year-first ordering. Hungarian, Norwegian, and some East Asian administrative data.
YMD Date (dot-separated)
datetime.date.ymd_dotYear.Month.Day with dot separators. Unambiguous due to year-first ordering. Hungarian, Norwegian, and some East Asian administrative data.
Domain
datetime
Category
date
Casts to
DATE
Scope
Universal
Try it
CLI
$ finetype infer -i "2024.01.15"
→ datetime.date.ymd_dotDuckDB
Detect
SELECT finetype('2024.01.15');
-- → 'datetime.date.ymd_dot'Cast expression
strptime({col}, '%Y.%m.%d')::DATE
-- Format: %Y.%m.%dSafe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS DATE) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.date.ymd_dot';JSON Schema
finetype schema datetime.date.ymd_dot
{
"$id": "https://meridian.online/schemas/datetime.date.ymd_dot",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Year.Month.Day with dot separators. Unambiguous due to year-first ordering. Hungarian, Norwegian, and some East Asian administrative data.",
"examples": [
"2024.01.15",
"2023.12.31",
"2000.06.01"
],
"maxLength": 10,
"minLength": 10,
"pattern": "^\\d{4}\\.\\d{2}\\.\\d{2}$",
"title": "YMD Date (dot-separated)",
"type": "string",
"x-finetype-broad-type": "DATE",
"x-finetype-format-string": "%Y.%m.%d",
"x-finetype-transform": "strptime({col}, '%Y.%m.%d')::DATE"
}Examples
2024.01.152023.12.312000.06.01