when using SimpleDateFormat in jdk1.6 parse for EEE MMM dd HH:mm:ss zzz yyyy I receive a parse exception

View: New views
1 Messages — Rating Filter:   Alert me  

when using SimpleDateFormat in jdk1.6 parse for EEE MMM dd HH:mm:ss zzz yyyy I receive a parse exception

by Michal Singer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

when using SimpleDateFormat in jdk1.6 parse for EEE MMM dd HH:mm:ss zzz yyyy I receive a parse exception
this works fine with lower version of jdk.

I try to do:
 SimpleDateFormat dtf
        = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
     String str0 = "Thu Aug 27 14:40:26 IDT 2009";

and i get this exception:

Parsing Thu Aug 27 14:40:26 IDT 2009 with EEE MMM dd HH:mm:ss zzz yyyy
Exception: java.text.ParseException: Unparseable date: "Thu Aug 27 14:40:26 IDT 2009"


Any ideas why?

thanks