Meridianmeridian

Abbreviated Month Year

datetime.date.month_year_abbrev

Abbreviated month name followed by 4-digit year. No day component. Financial dashboards, CLDR yMMM skeleton.

Domain
datetime
Category
date
Casts to
DATE
Scope
Universal

Try it

CLI
$ finetype infer -i "Jan 2024"
→ datetime.date.month_year_abbrev

DuckDB

Detect
SELECT finetype('Jan 2024');
-- → 'datetime.date.month_year_abbrev'
Cast expression
strptime('01 ' || {col}, '%d %b %Y')::DATE
-- Format: %b %Y
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.month_year_abbrev';

JSON Schema

finetype schema datetime.date.month_year_abbrev
{
  "$id": "https://meridian.online/schemas/datetime.date.month_year_abbrev",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Abbreviated month name followed by 4-digit year. No day component. Financial dashboards, CLDR yMMM skeleton.",
  "examples": [
    "Jan 2024",
    "Dec 2023",
    "Jun 2000"
  ],
  "maxLength": 8,
  "minLength": 8,
  "pattern": "^[A-Z][a-z]{2} \\d{4}$",
  "title": "Abbreviated Month Year",
  "type": "string",
  "x-finetype-broad-type": "DATE",
  "x-finetype-format-string": "%b %Y",
  "x-finetype-transform": "strptime('01 ' || {col}, '%d %b %Y')::DATE"
}

Examples

Jan 2024Dec 2023Jun 2000