#367 - Parsing and Formatting Dates in Swift

Published: Dec. 13, 2018, 2:48 p.m.

Working with dates is a task that is universally applicable to Swift developers. Particularly when dealing with an API, dates can arrive in all shapes and sizes. We\u2018ll examine some of the common ones such as ISO 8601, show how to parse these formats into Date instances, and how to use DateFormatter to display them back again as a string. We\u2018ll also cover the importance of using en_US_POSIX and honoring the user\u2018s Locale when displaying dates.