What is wrong with this code?
NSString *strTest = @\"Sun Apr 12 23:29:24 +0000 2009\"; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
You are giving MM/dd/yy pattern to dateFormatter but your date string is not fit for that thus dateFormatter returning a nil date.