A New Approach to Date Formatting In Swift
Too Long; Didn't Read
In Swift 5.5 and iOS 15 Apple has introduced new interfaces that allow developers to convert data types from Foundation into localized strings. The main aim is to provide easier way to create formatted display string with less of customizations. In this article, we are going to focus on how to convert Dates and Date ranges to formatted localized string for display. We will also create our own custom format styles for Date.