Skip to main content
Parses a date or time string according to the specified format and converts the string to a DATETIME value.

Syntax

Parameters

  • str: the time expression to convert. It must be of the VARCHAR type.
  • format: the time format specifier for str. It is used to parse and convert the input string. format must match string. Otherwise, NULL is returned. If format is invalid, an error is returned. The following table describes the format elements.

Examples

Keywords

TO_TERA_TIMESTAMP