String datestring =“Wed Oct 16 00:00:00 CEST ”;
//日期格式化
DateFormat formate1 = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
DateFormat formate2 = new SimpleDateFormat(“EEE MMM dd HH:mm:ss zzz yyyy”,Locale.ENGLISH);
Date date = formate2.parse(datestring);
String dateString = formate1.format(date);
ws.setCreatetime2(dateString);