0

I received from a SOAP message the follow date: 2012-11-16T02:02:05Z

How to parse to Date? What means this T and the Z in the date according with the SOAP specification?

4

2 回答 2

1

我可以通过这种方式正确解析:

new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(paymentDate);

谢谢@vikdor!

于 2012-11-16T11:50:17.480 回答
1
于 2017-02-18T20:03:42.500 回答