Meridianmeridian

YMD Date (slash-separated)

datetime.date.ymd_slash

Year/Month/Day with slash separators. Unambiguous due to year-first ordering. CLDR ja-JP short format; standard in Japanese and Taiwanese CSV exports.

Domain
datetime
Category
date
Casts to
DATE
Scope
Universal

Try it

CLI
$ finetype infer -i "2024/01/15"
→ datetime.date.ymd_slash

DuckDB

Detect
SELECT finetype('2024/01/15');
-- → 'datetime.date.ymd_slash'
Cast expression
strptime({col}, '%Y/%m/%d')::DATE
-- Format: %Y/%m/%d
Safe 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_slash';

JSON Schema

finetype schema datetime.date.ymd_slash
{
  "$id": "https://meridian.online/schemas/datetime.date.ymd_slash",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Year/Month/Day with slash separators. Unambiguous due to year-first ordering. CLDR ja-JP short format; standard in Japanese and Taiwanese CSV exports.",
  "examples": [
    "2024/01/15",
    "2023/12/31",
    "2000/06/01"
  ],
  "maxLength": 10,
  "minLength": 10,
  "pattern": "^\\d{4}/\\d{2}/\\d{2}$",
  "title": "YMD Date (slash-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