Skip to content

Day of Month

Type Registry

Day of Month

datetime.component.day_of_month

Integer day of month (1-31). Highly ambiguous — overlaps with many integer types. Best identified via column-mode inference.

Domain datetimecomponent
Casts to TINYINT
Scope broad_numbers

Try it

CLI
$ finetype infer -i "1"
→ datetime.component.day_of_month

DuckDB

Detect
SELECT finetype('1');
-- → 'datetime.component.day_of_month'
Cast expression
{col}::TINYINT
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS TINYINT) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.component.day_of_month';

JSON Schema

finetype schema datetime.component.day_of_month
{
  "$id": "https://noon.sh/schemas/datetime.component.day_of_month",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Integer day of month (1-31). Highly ambiguous — overlaps with many integer types. Best identified via column-mode inference.",
  "examples": [
    "1",
    "15",
    "31"
  ],
  "title": "Day of Month",
  "type": "string"
}

Examples

11531

Types in datetime