New Way to Format Dates in Swift (5.5) @seanallen
New Way to Format Dates in Swift (5.5)  @seanallen
Uploaded July 2022 | Updated September 2026, 3 hours ago
Swift 5.5 and iOS 15 introduced a new API to format dates. This new way is much cleaner and more intuitive than the old DateFormatter(). This is not a replacement for that old method, as you will still need to use that in certain circumstances. But the new Formatter API in Swift 5.5 is an easier way to format most of the common date formats.

iOS Developer Courses
seanallen.teachable.com/?video=5I1ghMpU4rs

Twitter:
Sean Allen - twitter.com/seanallen_dev

iOS Developer Courses
seanallen.teachable.com

Timestamps:
0:00 - New Formatter API
0:37 - Basic Examples
1:47 - Date Extension Refactor
3:06 - Customized Date Building Blocks
5:03 - When to Use the Old Way
5:26 - JSON Conversion & Format

Hired.com:
hired.com/x/1n01g

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803

Donny Wals - Combine:
gumroad.com/a/909014131

Mark Moeyken’s SwiftUI Books:
bigmountainstudio.com/swiftui-views-book/fzc51

Objc.io Books (Thinking in SwiftUI & Advanced Swift):
gumroad.com/a/656585843

Ray Wenderlich Books:
store.raywenderlich.com/a/20866/link/1

Links to my iOS Dev Setup & iOS Dev Book Recommendations
amazon.com/shop/seanallen

#swift #softwaredeveloper #iosdeveloper
New Way to Format Dates in Swift (5.5)Swift in 2023, Better Pull Requests, Paywalls, SwiftUI Animations & MoreSwift: Dead Simple Formatting (Dates, Numbers, Currency, Measurement, Time)SwiftUI - Support Prior iOS Versions - Backward Compatibility - #availableXcode Tip - Vertical Code Selection #iosdeveloper #swift #xcodeMy New Way To Create App Store ScreenshotsThe Secret to Doubling App Store Conversions in iOS 26visionOS 3D content in SwiftUI | Xcode | SplineHow to Choose the RIGHT Indie App to BuildSoftware Dev Tips - It Gets Easier... #shortsDynamic Island, Swift 5.7, HIG Updates, Apple Watch Ultra & More!Xcode Tip - Fix Spelling Errors in Your Code #iosdeveloper #swift #xcode
Sean Allen |

New Way to Format Dates in Swift (5.5)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER