Skip to main content
Scalar function
NULL format or value yields NULL. NULL timezone uses default UTC interpretation; malformed strings, invalid formats or timezones raise errors.

Syntax

Scalar

Arguments

Returns

  • Type: TIMESTAMP with UTC timezone
  • NULL behavior: NULL format or value yields NULL. NULL timezone uses default UTC interpretation; malformed strings, invalid formats or timezones raise errors.

Properties

Usage notes

  • Format is first; input string is second. Optional timezone interprets wall time before conversion to UTC.
  • Formatting supports the Java-style and MySQL-style patterns described above.

Examples

Basic example

Parse a day-first date

Limitations

  • Format and time-zone arguments must be constant STRING values. They cannot vary by row.
Last modified on October 15, 2026