Skip to content

parseToTimestamp - Parse a timestamp from a string

Deprecated: use parseTimestamp instead

Parses a timestamp from string with an optional format specification and time zone override. See parseTimestamp for more details.

Syntax

parseToTimestamp(string: string, format: string?, tz: string?): timestamp

Arguments

NameTypeRequiredDescription
timestampstringtrueThe timestamp string to parse
formatstringfalseThe format of the timestamp. Defaults to auto
tzstringfalseMust be a valid Time Zone string. See Time Zone section to find out more.