public static void main(String
[] args
) throws ParseException
{
String expDate
= "2019-03-24T07:27:02.070Z";
SimpleDateFormat format1
= new SimpleDateFormat(
"yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
SimpleDateFormat format2
= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String time
= format2
.format(format1
.parse(expDate
));
System
.out
.println(time
);
}
转载请注明原文地址:https://tech.qufami.com/read-11677.html