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
Name | Type | Description |
date | String | The date to parse. Timezone value is required i.e. $2012-09-30T10:10:10-0600$1 |
format | String | Format used to parse the date and timezone against. e.g. $1yyyy-MM-dd'T'HH:mm:ssZ$1 |
Returns
Type | Description |
DateTime | The result DateTime with the given timezone. |
See Also
java.time.format.DateTimeFormatter