-3

I have the following DateFormat in Java:

DateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM Z'T'HH:mm:ss");

When I try to parse the following date I get an 'Unparseable date' exception: "2015-02-23T10:47:00+10:00".

What DateFormat should I use instead?

Ian Roberts
  • 117,925
  • 15
  • 163
  • 179
LuisC
  • 7
  • 2

1 Answers1

0
DateFormat DATE_FORMAT =new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX");