2020-04-16T00:00:00+08:00
在Java中这种时间格式如何正常转换
yyyyMMdd
yyyyMMddHHmm
可以使用SimpleDateFormat 类的 format(date) 方法,类似
Date date = new Date();
String strDateFormat = "yyyy-MM-dd HH:mm:ss";
SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
System.out.println(sdf.format(date));