Meridianmeridian

DMY Date with Abbreviated Month (space-separated)

datetime.date.dmy_space_abbrev

Day Month-Abbr Year with space separators. Unambiguous due to named month. RFC 2822 date portion, military/NATO records, PostgreSQL to_char.

Domain
datetime
Category
date
Casts to
DATE
Scope
Universal

Try it

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

DuckDB

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

JSON Schema

finetype schema datetime.date.dmy_space_abbrev
{
  "$id": "https://meridian.online/schemas/datetime.date.dmy_space_abbrev",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Day Month-Abbr Year with space separators. Unambiguous due to named month. RFC 2822 date portion, military/NATO records, PostgreSQL to_char.",
  "examples": [
    "15 Jan 2024",
    "31 Dec 2023",
    "1 Jun 2000"
  ],
  "maxLength": 11,
  "minLength": 10,
  "pattern": "^[0-3]?\\d [A-Z][a-z]{2} \\d{4}$",
  "title": "DMY Date with Abbreviated Month (space-separated)",
  "type": "string",
  "x-finetype-broad-type": "DATE",
  "x-finetype-format-string": "%d %b %Y",
  "x-finetype-transform": "strptime({col}, '%d %b %Y')::DATE"
}

Examples

15 Jan 202431 Dec 20231 Jun 2000