I try to convert String to Date.
Here is my code:
SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
Date date = format.parse("Sun Apr 08 16:37:00 CEST 2012");
I get exception:
04-08 13:51:36.536: W/System.err(8005): java.text.ParseException: Unparseable date: "Sun Apr 08 16:37:00 CEST 2012".
Format seems to be ok. Am I missing something?
Thanks.
See Question&Answers more detail:os