I've read a few similar posts but I can't figure out where I'm still going wrong with the below:
let string = "2015-01-24T08:00"
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-ddTHH:mm"
print(formatter.date(from: string) ?? "Unknown date")
Output is always "Unknown date" (nil)
Thanks!