Given I have such String date
val date = "2019-01-07T13:54:00+0000"
How to parse this date to other timezone e.g "Asia/Kolkata"?
I was trying:
val zone = DateTimeZone.forID("Asia/Kolkata")
val resultMillis = ISODateTimeFormat
.dateTimeParser()
.withZone(zone)
.parseDateTime(date)
But it did not worked