Skip to main content

AS_TIMESTAMP function

Converts a string value to a date-time value (timestamp type).

Syntax

as_timestamp(<val>, <layout>)
ParameterTypeDescription
valstring
layoutstring

Usages

as_timestamp(`created_at`)
as_timestamp(`created_at`, "2006-01-02 15:04:05")