Convert NSString to NSDate [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Converting NSString to NSDate (and back again) I make a request to the flickr api and it returns me the date in the following format "2013-02-01T06:25:47Z" How do i convert this into NSDate format?? 回答1: It's a simple one, converting NSString to NSDate we use NSDateformatter using dateFromString method. We need to provide the Dateformatter style with existing style for NSString NSDateFormatter *dateFormatter = [