Skip to content

American Datetime (24-hour)

Type Registry

American Datetime (24-hour)

datetime.timestamp.american_24h

US-style date ordering (MM/DD/YYYY) with 24-hour time. Common in US military, healthcare, and technical systems.

Domain datetimetimestamp
Casts to TIMESTAMP
Scope Universal

Try it

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

DuckDB

Detect
SELECT finetype('01/15/2024 10:30:00');
-- → 'datetime.timestamp.american_24h'
Cast expression
strptime({col}, '%m/%d/%Y %H:%M:%S')
Format: %m/%d/%Y %H:%M:%S
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.american_24h';

JSON Schema

finetype schema datetime.timestamp.american_24h
{
  "$id": "https://noon.sh/schemas/datetime.timestamp.american_24h",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "US-style 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": "American Datetime (24-hour)",
  "type": "string"
}

Examples

01/15/2024 10:30:0012/31/2019 23:59:59

Also known as

formatted_datetime

Types in datetime