Pages

Sunday, June 9, 2013

Re: Converting nsdates to NSStrings and vice-versa

From the class definition for NSDate:

 

To parse strings containing dates and to generate string representations of a date, you should use an instance of NSDateFormatter using the methodsdateFromString

 

To go from date to string see NSDate's description and descriptionWithLocale: methods


View the original article here

0 comments:

Post a Comment