parseZonedDateTimeQuiet

The parseZonedDateTimeQuiet 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.

"Quiet" methods return null instead of throwing an exception when encountering a string that cannot be parsed.

Syntax

Parameters

ParameterTypeDescription
sstring

The string to be converted.

Returns

A ZonedDateTime, or null if invalid input is given.

Examples