I am sorry to ask this question but i can't find the answer. I try to parse the following String from a server into a NSDate: "2016-03-02 23:20:40.000 +0000"
let dateFormatter = NSDateFormatter()
let myDate = "2016-03-02 23:20:40.000 +0000"
dateFormatter.dateFormat = "yyyy-MM-dd hh:mm:ss.SSS Z"
print(dateFormatter.dateFromString(myDate)) //-> nil
I found tons of informations about the dateFormat, but nothing helped me out. I also tried different locals, but it was not successfully. :(
Thanks!!!