ClickHouse has function toDateTime64() to convert string into DateTime64 data type.
Example from official documentation:
SELECT * FROM dt WHERE timesta