String str = "Wed Jun 5 00:00:00 GMT+08:00 2013";//在08与00之间加:
SimpleDateFormat sdf = new SimpleDateFormat("E MMM dd HH:mm:ss z yyyy",Locale.US);
Date date=new Date();
try {
date= sdf.parse(str);
sdf = new SimpleDateFormat("yyyy-MM-dd");
System.out.println(sdf.format(date));
} catch (ParseException e) {
e.printStackTrace();
}
System.out.println("haha");
http://blog.csdn.net/zzq900503/article/details/38925225