how to parse this date ?
Mon Jul 29 02:00:00 CEST 2013
the code:
public class HelloWorld{
public static void main(String []args){
try {
String startdateString = "Mon Jul 29 02:00:00 CEST 2013";
SimpleDateFormat fromUser2 = new SimpleDateFormat("EEE MMM d hh:mm:ss z yyyy");
startdateString = myFormat.format(fromUser2.parse(startdateString));
} catch (ParseException e) {
e.printStackTrace();
}
}
}
i am getting following exception
java.text.ParseException: Unparseable date: "Mon Jul 29 02:00:00 CEST 2013"
16:13:57,761 ERROR [stderr] (http-/0.0.0.0:8080-1) at java.text.DateFormat.parse(Unknown Source)