Java / convert ISO-8601 (2010-12-16T13:33:50.513852Z) to Date object
问题 How to parse a String in ISO 8601 format with Zulu time? javax.xml.bind.DatatypeConverter.parseDateTime(\"2010-12-16T13:33:50.513852Z\") returns IllegalArgumentException: \'2010-12-16T13:33:50.513852Z\' weist ein falsches Format auf. Which mean something like wrong format, anyone have a clue what iss wrong in here? 回答1: tl;dr Instant.parse( "2010-12-16T13:33:50.513852Z" ) java.time The newer java.time classes can handle this string input. The Z on the end is short for Zulu and means UTC, an