Skip to content

European Datetime

Type Registry

European Datetime

datetime.timestamp.european

European-style datetime with 24-hour clock. Day-first ordering (DD/MM/YYYY). Used across the EU and many Commonwealth countries.

Domain datetimetimestamp
Casts to TIMESTAMP
Scope Universal

Try it

CLI
$ finetype infer -i "15/01/2024 10:30"
→ datetime.timestamp.european

DuckDB

Detect
SELECT finetype('15/01/2024 10:30');
-- → 'datetime.timestamp.european'
Cast expression
strptime({col}, '%d/%m/%Y %H:%M')
Format: %d/%m/%Y %H:%M
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS TIMESTAMP) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.timestamp.european';

JSON Schema

finetype schema datetime.timestamp.european
{
  "$id": "https://noon.sh/schemas/datetime.timestamp.european",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "European-style datetime with 24-hour clock. Day-first ordering (DD/MM/YYYY). Used across the EU and many Commonwealth countries.",
  "examples": [
    "15/01/2024 10: 30",
    "31/12/2019 23: 59"
  ],
  "pattern": "^\\d{2}/\\d{2}/\\d{4} \\d{2}:\\d{2}$",
  "title": "European Datetime",
  "type": "string"
}

Examples

15/01/2024 10:3031/12/2019 23:59

Also known as

little_endian

Types in datetime