SyntaxFix
Write A Post
Hire A Developer
Questions
The default parser can parse your input. So you don't need a custom formatter and
String dateTime = "2012-02-22T02:06:58.147Z"; ZonedDateTime d = ZonedDateTime.parse(dateTime);
works as expected.