Swift\'s JSONDecoder offers a dateDecodingStrategy property, which allows us to define how to interpret incoming date strings in accordance with a
JSONDecoder
dateDecodingStrategy
If you have multiple dates with different formats in single model, its bit difficult to apply .dateDecodingStrategy for each dates.
.dateDecodingStrategy
Check here https://gist.github.com/romanroibu/089ec641757604bf78a390654c437cb0 for a handy solution