What date format is '2010-10-11T22:10:10.000Z' ?
Asked
Active
Viewed 1,023 times
1
-
02-04 21:05:28.106: WARN/System.err(2760): java.text.ParseException: Unparseable date: 2010-05-14T01:29:30.000Z – Bytecode Feb 04 '11 at 16:06
-
If your question is directed toward actually parsing a date in that format, this is probably a duplicate of http://stackoverflow.com/questions/2580925/simpledateformat-parsing-date-with-z-literal – Rob Hruska Feb 04 '11 at 16:15
3 Answers
6
That's an ISO8601 date format.
If you're looking to actually parse a date in that format (your question doesn't really make your intentions clear), have a look at these other questions.

Community
- 1
- 1

Rob Hruska
- 118,520
- 32
- 167
- 192
-
FYI, thIs ISO 8601 format is used by default for parsing and generating strings in both the [Joda-Time](http://www.joda.org/joda-time/) library and the new [java.time package](http://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html) built into Java 8 and later. – Basil Bourque Jul 20 '15 at 19:37
2
It is ISO 8601 format expressed in UTC (i.e. it is not carrying the timezone offset)

Aravind Yarram
- 78,777
- 46
- 231
- 327
1
Where did you get that string from? XML? Then use: http://download.oracle.com/javase/6/docs/api/javax/xml/bind/DatatypeConverter.html
Or better: consider to use JAXB

Puce
- 37,247
- 13
- 80
- 152