Why can't this SimpleDateFormat parse this date string?

Posted by Bears will eat you on Stack Overflow See other posts from Stack Overflow or by Bears will eat you
Published on 2010-04-08T21:37:46Z Indexed on 2010/04/08 21:43 UTC
Read the original article Hit count: 515

Filed under:
|
|
|

The SimpleDateFormat:

SimpleDateFormat pdf = new SimpleDateFormat("MM dd yyyy hh:mm:ss:SSSaa");

The exception thrown by pdf.parse("Mar 30 2010 5:27:40:140PM");:

java.text.ParseException: Unparseable date: "Mar 30 2010 5:27:40:140PM"

Any ideas?

© Stack Overflow or respective owner

Related posts about java

Related posts about simpledateformat