The T is just a literal to separate the date from the time, and the Z means "Zulu time" (UTC). If your strings always have a "Z" you can use:
SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); format.setTimeZone(TimeZone.getTimeZone("UTC"));
Read full article from java - What is this date format? 2011-08-12T20:17:46.384Z - Stack Overflow
No comments:
Post a Comment