DateTime.parseStringWithTimeZone()

Signature

DateTime parseStringWithTimeZone (String date, String format)

Domain

ACTION, CONDITION, QUERY, BUI

Description

Parses the date provided in the string according to the format and returns it as a DateTime with given time zone.

Parameters

NameTypeDescription
dateStringThe date to parse. Timezone value is required i.e. $2012-09-30T10:10:10-0600$1
formatStringFormat used to parse the date and timezone against. e.g. $1yyyy-MM-dd'T'HH:mm:ssZ$1

Returns

TypeDescription
DateTimeThe result DateTime with the given timezone.

Cautions

none

See Also

java.time.format.DateTimeFormatter