Date for string
NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"dd-MMM"]; cell.dateLabel.text = [formatter stringFromDate:item.pubDate]
Date format characters The table from the Unicode date format page should be enough for you to create your own date format string ...
Pattern Result (in a particular locale) yyyy.MM.dd G 'at' HH:mm:ss zzz 1996.07.10 AD at 15:08:56 PDT EEE, MMM d, ''yy Wed, July 10, '96 h:mm a 12:08 PM hh 'o''clock' a, zzzz 12 o'clock PM, Pacific Daylight Time K:mm a, z 0:00 PM, PST yyyyy.MMMM.dd GGG hh:mm aaa 01996.July.10 AD 12:08 PM Hope this is useful to someone out there.
Use the following link for more information.
http://benscheirman.com/2010/06/dealing-with-dates-time-zones-in-objective-c/
It really helped me. It was very easy.
source share