Skip to main content
Version: Java (Groovy)

parseZonedDateTime

The parseZonedDateTime method parses the supplied string as a time zone. Date-time strings are formatted according to the ISO-8601 format yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ and others.

Syntax

parseZonedDateTime(s)

Parameters

ParameterTypeDescription
sstring

The string to be converted.

Returns

A ZonedDateTime.

Examples

println parseZonedDateTime("1982-09-23T11:23:00 ET")