How to parse String containing date and timezone to DateTime
I have such string which can be formatted like this (depending on timezone, so e.g):
"2018-10-17T15
3315 UTC"
"2018-10-17T17
0300 Europe/Praga
"2018-10-18T12
0000 America/Kentucky/Monticello"
How to parse such strings to datetime?
What I was trying:
val dateString = "2018-10-18T12
0000 America/Kentucky/Monticello"
ISODateTimeFormat
.dateTimeParser()
.parseDateTime(dateString)
But it cannot be parsed