1

What date format is '2010-10-11T22:10:10.000Z' ?

Basil Bourque
  • 262,936
  • 84
  • 758
  • 1,028
Bytecode
  • 6,339
  • 15
  • 51
  • 99
  • 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 Answers3

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
  • 115,151
  • 29
  • 164
  • 188
  • 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
  • 76,625
  • 45
  • 224
  • 313
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
  • 36,099
  • 12
  • 75
  • 145