日期:2014-05-18 浏览次数:20580 次
public static void main(String[] args) throws ParseException {
String s="Sun Apr 07 11:12:34 CST 2013";
DateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ss 'CST' yyyy",Locale.US);
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
System.out.println(sdf.format(df.parse(s)));
}