How to read Json.NET ISO 8601 format in Gson?

In android How can I parse the following DateTime?

"2014-03-11T00:16:01.847" (iso 8061 format) Which is produced by NewtonSoft JsonConvert library

I tried the following format but could not

"yyyy-MM-dd'T'HH:mm:ss.SS'Z'"

"YYYY-MM-DDThh:mm:ssTZD"
+4
source share
1 answer

ISO 8601 format: "yyyy-MM-dd'T'HH:mm:ssX"

+1
source

Source: https://habr.com/ru/post/1531277/


All Articles