Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query optimization, and usability that you won’t want to miss.

TIMESTAMP

Convert the input argument to a datetime object.

Syntax

TIMESTAMP(dateobj)

Arguments

  • dateobj: a valid date, datetime, or parsable date string.

Return Type

Datetime object. If dateobj is not a valid date, returns NULL.

Examples

select timestamp('2015-03-03');
+-------------------------+
| timestamp('2015-03-03') |
+-------------------------+
| 2015-03-03 00:00:00     |
+-------------------------+

Related Topics