I am trying to convert an ISO8601 string into a date in string, but am getting a runtime failure when doing the conversion and I'm not sure why, here's the code:
let dateString = "2022-08-16T01:27:55.000Z"
let isoFormatter = ISO8601DateFormatter()
let newDate = isoFormatter.date(from: dateString)!