Posted By

nicedexter on 10/11/09


Tagged


Versions (?)

NSDateFormatter for RSS


 / Published in: Objective C
 

URL: http://www.lusine.ch/

  1. NSString *strPubDate = @"Fri, 8 May 2009 08:08:35 GMT";
  2. NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
  3. [dateFormatter setDateFormat:@"EEE, d MMM yyyy HH:mm:ss zzzz"];
  4. NSDate *myDate = [dateFormatter dateFromString:strPubDate];

Report this snippet  

You need to login to post a comment.