//规范格式
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
SimpleDateFormat df1 = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy", Locale.UK);
DateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
df2.setTimeZone(TimeZone.getTimeZone("GMT+8"));
DateFormat df3 = new SimpleDateFormat("yyyy-MM-dd");
df3.setTimeZone(TimeZone.getTimeZone("GMT+8"));
//代入改变的数据
if (StringUtils.isNotNull(applyTmObj)) {
Date date = null;
try {
date = df.parse(applyTmObj.toString());
Date date1 = df1.parse(date.toString());
eachMap.put("applyTm", df2.format(date1));
} catch (ParseException e) {
e.printStackTrace();
}
}