Hi,
I am getting date in following format, as java string:
Sat Jan 01 00:00:00 CET 2000
i want to convert it to yyyy-MM-dd fromat. For this i am doing:
String strDate = "Sat Jan 01 00:00:00 CET 2001";
SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-dd");
try{
Date parsed = sdf.parse(strDate);
}catch(Exception e){
System.out.println("Exception: " + e.getMessage());
}
But i am getting exception: Unparseable date: "Sat Jan 01 00:00:00 CET 2001"
Please give me some solution for this.
Thank you