• Post Reply Bookmark Topic Watch Topic
  • New Topic

Receiving ParseException with String containing ISO 8601 Formatted Date using Java 1.6  RSS feed

 
Andre Perezy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep getting a ParseException when I try to parse a ISO 8601 formatted String into a Java Date type.



Keeps returning a ParseException:

Unparseable date: "2014-07-04T22:59:36Z"

What am I possibly doing wrong?
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andre,
Your date string contains seconds.
Your format pattern does not.

Good Luck,
Avi.
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Always tell us if you post elsewhere; you actually got the answer on the other forum first, so you should tell us that, too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!