datetime.date.month_year_slashNumeric Month/Year with slash separator. No day component. Billing data, credit card contexts, expiration-like formats.
$ finetype infer -i "01/2024"
→ datetime.date.month_year_slashSELECT finetype('01/2024');
-- → 'datetime.date.month_year_slash'strptime('01/' || {col}, '%d/%m/%Y')::DATE
-- Format: %m/%Y-- 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.month_year_slash';month: CAST(SUBSTRING({col}, 1, 2) AS INT)
year: CAST(SUBSTRING({col}, 4, 4) AS INT){
"$id": "https://meridian.online/schemas/datetime.date.month_year_slash",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Numeric Month/Year with slash separator. No day component. Billing data, credit card contexts, expiration-like formats.",
"examples": [
"01/2024",
"12/2023",
"06/2000"
],
"maxLength": 7,
"minLength": 7,
"pattern": "^(0[1-9]|1[0-2])/\\d{4}$",
"title": "Month/Year (slash-separated)",
"type": "string",
"x-finetype-broad-type": "DATE",
"x-finetype-format-string": "%m/%Y",
"x-finetype-transform": "strptime('01/' || {col}, '%d/%m/%Y')::DATE"
}01/202412/202306/2000