Created
December 7, 2017 17:20
-
-
Save nderkach/cf7d8a1561a938a9dbaa04a5bf840ce4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let jsonDecoder = JSONDecoder() | |
let jsonDateFormatter = DateFormatter() | |
jsonDateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.A" | |
jsonDecoder.dateDecodingStrategy = .formatted(jsonDateFormatter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment