Possible Duplicate:
Ordinal Month-day Suffix Option for NSDateFormatter setDateFormat
I'm trying to get the date to display Tues, Jan 24th 2012. Anyone know how to get the th nd, st, rd to show up?
NSDate *currDate = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en-US"];
[dateFormatter setDateFormat:@"E, MMM dd, YYYY"];
longDate = [dateFormatter stringFromDate:currDate];
NSLog(@"%@",longDate);
will display Tue, Jan 24, 2012