Skip to content

Parses a string into a datetime using Joda-Time format patterns.

func.str_to_jodatime(<str>, <pattern>)
func.str_to_jodatime('2024/06/15', 'yyyy/MM/dd')
┌──────────────┐
│ '2024-06-15' │
└──────────────┘
STR_TO_JODATIME(<str>, <pattern>)
SELECT STR_TO_JODATIME('2024/06/15', 'yyyy/MM/dd');
┌────────────┐
│ 2024-06-15 │
└────────────┘