9951 explained code solutions for 126 technologies


clickhouseConvert string to date/time


SELECT toDateTime('2025-05-15 01:02:03')ctrl + c
toDateTime

converts given string to date/time

2025-05-15 01:02:03

sample textual date/time


Usage example

SELECT toDateTime('2025-05-15 01:02:03')
output
┌─toDateTime('2025-05-15 01:02:03')─┐
│               2025-05-15 01:02:03 │
└───────────────────────────────────┘