I am using following code & its working perfectly fine in iPhone OS 3.2
+(NSDate *)NSDateFromString:(NSString *)dateString
{
NSDateFormatter *dateFormatter
[NSDateFormatter dateFormatFromTemplate:options:locale:] might work better
NSString *format = [NSDateFormatter
dateFormatFromTemplate:@"Mdjm"
options:0
locale:[NSLocale currentLocale]];
// "M/d h:mm a" // US English format returned for US locale
[dateFormatter setDateFormat:format];
NSDate *date = [dateFormatter dateFromString:dateString];