4. JSON - Decoding Dates - Swift Codable

Published: 09 February 2020
on channel: Stewart Lynch
5,819
268

In this video we will see how we can decode dates that are presented in a number of different formats in our JSON object.
We will first take a look at the JSONDecoder dateDecodingStategy and if your date is expressed as a String, I will show you a great DateFormatter site to help you with creating your date formats.
We will then look at various other dateDecodingStrategies.

Series Resources:
Videos 1 - 8 all use the same Xcode Playground.
Download - http://www.createchsol.com/JSONParsin...
Video 9 Starter Projects
Download - http://www.createchsol.com/JSONParsin...

Video References:
NSDateFormatter:
https://nsdateformatter.com

UseYourLoaf Blog Post:
https://useyourloaf.com/blog/swift-co...

HackingWithSwift Codable Cheat Sheet:
https://www.hackingwithswift.com/arti...

All Videos in this series

1. Introduction to JSON and Codable with Swift
https://www.avanderlee.com/swift/json...

2. The Basics of JSON Decoding - Swift
   • 2  The Basics of JSON Decoding - Swift  

3. Getting JSON from a local file - Swift
   • 3  JSON From local file - Swift  

4. JSON - Decoding Dates - Swift Codable
   • 4.  JSON - Decoding Dates - Swift Codable  

5. JSON CodingKeys - Swift
   • 5. JSON CodingKeys - Swift  

6. JSON - Custom CodingKeys- Swift
   • 6.  JSON - Custom CodingKeys- Swift  

7. JSON from API - Swift
   • 7.  JSON from API - Swift  

8. Encoding Data - Swift
   • 8.  Encoding data - Swift  

9. Decode/Encode Sample Application - Swift
   • 9.  Decode/Encode Sample App - Swift  

Stewart Lynch Links:

YouTube Playlist on iOS Development
   • Swift and SwiftUI Fundamentals  

Stewart Lynch’s CreaTECH Solutions Web Site
https://www.createchsol.com

Stewart Lynch's GitHub
https://github.com/StewartLynch

Stewart Lynch on Twitter
  / stewartlynch  


On this page of the site you can watch the video online 4. JSON - Decoding Dates - Swift Codable with a duration of hours minute second in good quality, which was uploaded by the user Stewart Lynch 09 February 2020, share the link with friends and acquaintances, this video has already been watched 5,819 times on youtube and it was liked by 268 viewers. Enjoy your viewing!