Possible Duplicate:
NSString to NSDate
How to parse a date string into an NSDate object in iOS
I have NSString *dateAndTime = @"2011-11-22 03:20:39".
I want to get a NSString *dateWithoutTime (e.g. "2011-11-22") from this above string.
How do I get?