获取的日期字符串为:
2022-08-30T21:52:00.100.Z
转换为
2022-08-30 21:52:00
DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",locale.CHINA);
format.setTimeZone(TimeZone.getTimeZone("UTC"));
Date date = format.parse(Str1);
// str1为2022-08-30T21:52:00.100.Z
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date)