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

Like many functions in DataPrime, parseToTimestamp supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.

parseToTimestamp(string: string, format: string?, tz: string?): timestamp
string: string.parseToTimestamp(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.