I changed it to this:
Code:
[dateFormatter setDateFormat:@"yyyy-mm-dd hh:mm:ss"];
and chopped the appropriate bit off the string, and it worked just fine. From a little research, it seems that if the format is not correct, the return from the dateFromString method is nil. So it seems that your format is not correct.