I am trying to update some code to use Java 8\'s feature for parsing multiple date formats. my local time on my box is set to UTC-11.
the below cod
Solved, using OffsetDateTime as suggested in the accepted 'Answer':
OffsetDateTime odt = OffsetDateTime.parse("2018-09-6T03:28:59.039-04:00"); Date correctDate = Date.from( odt.toInstant());