MDY 24-Hour Datetime
Month/Day/Year date ordering (MM/DD/YYYY) with 24-hour time. Common in US military, healthcare, and technical systems.
MDY 24-Hour Datetime
datetime.timestamp.mdy_24hMonth/Day/Year date ordering (MM/DD/YYYY) with 24-hour time. Common in US military, healthcare, and technical systems.
Domain
datetime
Category
timestamp
Casts to
TIMESTAMP
Scope
Universal
Try it
CLI
$ finetype infer -i "01/15/2024 10:30:00"
→ datetime.timestamp.mdy_24hDuckDB
Detect
SELECT finetype('01/15/2024 10:30:00');
-- → 'datetime.timestamp.mdy_24h'Cast expression
strptime({col}, '%m/%d/%Y %H:%M:%S')
-- Format: %m/%d/%Y %H:%M:%SSafe 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.mdy_24h';JSON Schema
finetype schema datetime.timestamp.mdy_24h
{
"$id": "https://meridian.online/schemas/datetime.timestamp.mdy_24h",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Month/Day/Year date ordering (MM/DD/YYYY) with 24-hour time. Common in US military, healthcare, and technical systems.",
"examples": [
"01/15/2024 10: 30: 00",
"12/31/2019 23: 59: 59"
],
"pattern": "^\\d{2}/\\d{2}/\\d{4} \\d{2}:\\d{2}:\\d{2}$",
"title": "MDY 24-Hour Datetime",
"type": "string",
"x-finetype-broad-type": "TIMESTAMP",
"x-finetype-format-string": "%m/%d/%Y %H:%M:%S",
"x-finetype-transform": "strptime({col}, '%m/%d/%Y %H:%M:%S')"
}Examples
01/15/2024 10:30:0012/31/2019 23:59:59Aliases
formatted_datetime