FROM_ISO8601_TIMESTAMP

All functions > DATE_AND_TIME > FROM_ISO8601_TIMESTAMP

Returns a timestamp from the given ISO 8601 string.

Syntax

FROM_ISO8601_TIMESTAMP(string)
sql

Arguments

ParameterTypeRequiredDescription
stringVARCHARYesAn ISO 8601 formatted timestamp string

Returns

A TIMESTAMP value parsed from the ISO 8601 string

Notes

  • Parses ISO 8601 formatted datetime strings
  • Format: YYYY-MM-DDTHH:MM:SS or YYYY-MM-DD HH:MM:SS
  • Supports timezone information in the input string
  • Returns NULL if the string is not valid ISO 8601 format
  • Useful for converting standardized datetime strings to timestamps

Examples

Last update at: 2025/10/13 10:23:46