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

Name Type Required Description
timestamp string true The timestamp string to parse
format string false The format of the timestamp. Defaults to auto
tz string false Must be a valid Time Zone string. See Time Zone section to find out more.