Link Search Menu Expand Document

TO_TIMESTAMP

Converts a string to timestamp.

Syntax

TO_TIMESTAMP(<string>)
Parameter Description
<string> The string format should be: ‘YYYY-MM-DD HH:mm:ss’

Example

SELECT
	TO_TIMESTAMP('2020-05-31 10:31:14') AS res;

Returns: 2020-05-31 10:31:14