I want to covert the following string with a zoned offset to a type DateTime with the new Java 8 time library in the simplest way possible:
2016-04-11T22:56:00.000-0500
I've experimented with the ISO_OFFSET_DATE_TIME format and ZonedDateTime objects, but I just can't seem to find a simple way to do it. Thanks in advance.
-05:00(with a:)DateTime. Maybe you have confused this with Joda-Time. The Java-8-equivalent would beZonedDateTime(orOffsetDateTimein this case).