I am using following code & its working perfectly fine in iPhone OS 3.2
+(NSDate *)NSDateFromString:(NSString *)dateString { NSDateFormatter *dateFormatter
- (id)init is not deprecated for NSDateFormatter in iOS4. That's an error in the documentation.
- (id)init