

Wrangling Dates & Time in iOS [SUBSCRIBER]
source link: https://www.raywenderlich.com/29432031-wrangling-dates-time-in-ios
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Wrangling Dates & Time in iOSGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupShapeGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroup
There is an updated version of this course available, created for Swift 5, iOS 14, Xcode 12. View Latest Version
Wrangling Dates & Time in iOS
May 17 2022 · Video Course (27 mins) · Advanced
Understanding the deep technical details how dates and time work in iOS is immensely helpful for developing apps—every single day, month, and year! Learn the foundational structures behind working with dates and time in iOS. Then, apply your date modeling to SwiftUI views.
Version
- Swift 5.5, iOS 15, Xcode 13

Wrangling Dates & Time in iOS
Use TimeInterval
2:42 FreeTimeInterval is a type alias for Double with a specific meaning: it’s a number of seconds, which is permitted to have a fractional component.
Use Date
2:22A Date is a specific point in time, independent of any calendar or time zone, that is stored as a number of seconds from a reference.
Use DateComponents
3:05DateComponents are specified in terms of units (e.g. year, month, day, hour, and minute), and are evaluated using a calendar and time zone.
Use Calendar
2:18Foundation’s Calendar wraps absolute points in time in systems which provide features for calculation and comparison of dates.
Calendars employ an enumeration for the various components of their dates, and lists of localized symbol Strings.
Use Date.FormatStyle
4:48Locales provide information about linguistic, cultural, and technological conventions for use in formatting data for presentation.
Date’s ParseStrategy type utilizes Format Strings to represent how the dates you’re receiving are formed via textual representations.
Use ISO 8601
2:37ISO 8601 is a widely-used standard for date representation. It’s a human-readable string, but as accurate as a TimeInterval instance.
Use DatePicker
1:41DatePicker is the SwiftUI view which corresponds with everything you’ve learned in this course so far, allowing the user to select a Date.
GraphicalDatePickerStyle is used to allow browsing through days in a calendar. If you want a clock, this is the style you need.
Version history
iOS 14, Swift 5, Xcode 12
Mar 11 2021iOS 15, Swift 5.5, Xcode 13 (Selected)
May 17 2022Who is this for?
This course is designed to clear up common confusion points when working with dates and time in the iOS ecosystem. It will be most useful as a reference if you’re already an experienced iOS developer, but feel free to learn along, if you find it helpful, even as a new developer to the platform. Being very familiar with with Swift and SwiftUI will assist you.
Covered concepts
- Foundation
- DateComponents
- Calendar
- FormatStyle
- ParseStrategy
- ISO 8601
- TimeInterval
- DatePicker
Contributors
Fascinated by technology consistently making learning easier, Jessy enjoys exploring new techniques involving creative software...
InstructorGraphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...
IllustratorNicolai is a video editor of the RayWenderlich team - a team consisting of over 200 developers and editors from all across the...
Video EditorComments
Reviews
We want to hear your thoughts!
Log into your account to leave a review for this Video Course.
All videos. All books.
One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!
All videos. All books. One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.
- © 2022 Razeware LLC
- Made with ♥ from around the world
- 6000+ Tutorials and counting
raywenderlich.com and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK