相关文章推荐
活泼的番茄  ·  python ...·  4 月前    · 
温柔的柳树  ·  [apue] 作为 daemon 启动, ...·  1 年前    · 
想发财的洋葱  ·  SQLServer ...·  1 年前    · 
耍酷的便当  ·  QT ...·  1 年前    · 

别人回答的别管,看我的回答就好

public static Date getDateByStrToYMDHMSWithEEE(String str) {
    String YMDHMS_FORMAT_2 = "EEE MMM dd HH:mm:ss z yyyy";
Date date = null;
if (str != null && str.trim().length() > 0) {
DateFormat dFormat = new SimpleDateFormat(YMDHMS_FORMAT_2, Locale.ENGLISH);
try {
date = dFormat.parse(str);
} catch (ParseException e) {
e.printStackTrace();
}
}
return date;
}