I'm trying to figure out how to convert a LocalDateTime to a Date object with a 0 offset.
The current code I'm using converts LocalDateTime to Date is:
Date.from(localDateTime.toInstant(ZoneOffset.UTC))
LocalDateTime:
2016-12-07T16:29:12.218
After being converted to Date:
2016-12-07T10:29:12.218-0600
Yes, I see there is a zone offset being passed into toInstant but i'm not sure how to do what i'm asking for.
UPDATE: I just received more information on my problem saying to set the date with precision and a zone of UTC to make the offset 0.