CodableDate A clean way to handle different date formatters. The problem: a codable JSON with different date formats... 🤔 The problem arises when we get a JSON with different date formats, like this one. The solution 🚀 Step1: Let’s define a protocol Step2: Let’s define generic date wrapper Step3: Let's define different style date formatters, based on input JSON Show time! 🔨 Let's test it, in playground Output is: 🙌🏻💪🏻 Tools Version Xcode 11.1 macOS 10.15.1 Swift version Swift 5.1 LICENSE MIT