datetime.date.korean_ymdYear-Month-Day with Korean character delimiters and spaces. Standard in Korean government and institutional data.
$ finetype infer -i "2024년 1월 15일"
→ datetime.date.korean_ymdSELECT finetype('2024년 1월 15일');
-- → 'datetime.date.korean_ymd'strptime(regexp_replace(regexp_replace(regexp_replace({col}, '년 ', '-'), '월 ', '-'), '일', ''), '%Y-%-m-%-d')::DATE-- 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.korean_ymd';{
"$id": "https://meridian.online/schemas/datetime.date.korean_ymd",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Year-Month-Day with Korean character delimiters and spaces. Standard in Korean government and institutional data.",
"examples": [
"2024년 1월 15일",
"2023년 12월 25일",
"2022년 6월 1일"
],
"pattern": "^\\d{4}년 [1-9]\\d?월 [1-3]?\\d일$",
"title": "Korean Standard Date",
"type": "string",
"x-finetype-broad-type": "DATE",
"x-finetype-transform": "strptime(regexp_replace(regexp_replace(regexp_replace({col}, '년 ', '-'), '월 ', '-'), '일', ''), '%Y-%-m-%-d')::DATE"
}2024년 1월 15일2023년 12월 25일2022년 6월 1일