Mi piacciono le date della stringa UTC che assomigliano a questo "2015-10-17T00: 00: 00.000Z" e voglio convertirle in un NSDate in questo formato "Ottobre 12th 2015 11:19:12 "Come convertire una stringa di data UTC in NSDate in Swift
Questo è il percorso che sto cercando ma non riesco a trovare la data giusta Formattazione.
let dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = //can't seem to get this right
dateFormatter.timeZone = NSTimeZone(name: "UTC")
let date = dateFormatter.dateFromString("2015-10-17T00:00:00.000Z")
Possibile duplicato di [Conversione di un ISO 8601 timestamp in un NSDate: come si gestisce l'offset dell'ora UTC?] (Http://stackoverflow.com/questions/5185230/converting-an-iso-8601-timestamp-into-an-nsdate-how-does-one-deal- with-the-utc) –
Nessuna delle risposte elencate funziona per me per qualche motivo – jonv562