The back end is providing me with this date-as-a-string: 2021-09-10T12:57:01.671Z
I need to convert that string to a Date
using the iOS DateFormatter
; and to do so I need to set the formatter's dateFormat
property.
I have tried all sorts of combinations, with no luck. Specifically I am struggling with the .671Z
part.
What is the correct date format to use?