The DateFormatter in iOS loses microseconds precision during conversion between string and Date types, leading to incorrect sorting orders.
To address this issue, the ISO8601DateFormatter can be used for parsing ISO8601 formatted timestamps with microseconds precision.
However, the withFractionalSeconds option of the ISO8601DateFormatter only preserves three digits, potentially leading to further loss of precision.
Previously, other topics related to date and timestamp handling in iOS were discussed, including a fast timestamp parser in Swift and date format changes in App Store receipts.