日期:2014-05-17 浏览次数:20656 次
public static void main(String[] args) throws Exception {
String str = "Tue May 31 17:46:55 +0800 2011";
Date date = new Date(str);
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss EEE");
String ourDate = df.format(date);
System.out.println(ourDate);
}