别人回答的别管,看我的回答就好
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;
}