Answer the question
In order to leave comments, you need to log in
How to deal with ISO8601 Date and microseconds in Swift?
There is a service that gives dates in ISO8601 format with fractional seconds: 2019-01-30T23:51:55.650144Z
The standard ISO8601DateFormatter in Swift cuts microseconds to three decimal places: 2019-01-30T23:51:55.650Z
Which creates problems. For example, in the same android Instant quite normally stores and parses such a format. Is there any workaround? Maybe an analogue of the Date class, with higher precision?
I found only this solution https://stackoverflow.com/questions/43123944/how-t... but it is invalid. It doesn't always parse correctly.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question