This file contains 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
import UIKit | |
struct Event: Codable { | |
var date: Date | |
} | |
/* | |
Apple docs state that setting dateDecodingStrategy to .iso8601 will decode the ISO-8601-formatted string (in RFC 3339 format) to Date object. | |
But most of the example date formats from https://www.ietf.org/rfc/rfc3339 fail to parse. | |
*/ |