日期:2014-05-18 浏览次数:20817 次
public static void main(String[] args) throws Exception {
String date = "Thu Sep 26 13:12:40 CST 2013";
DateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ss 'CST' yyyy",Locale.US);
Date d = df.parse(date);
df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss EEE");
String newDate = df.format(d);
System.out.println(newDate);
}