My Goal: If the current date is "Today" or "Yesterday", use the words "Today" and "Yesterday". If the current date is before today or yesterday, then use the following format (Thu, Aug 15). I am able to achieve this format using @"EEE, MMM d"
when I set setDoesRelativeDateFormatting to NO, however when I attempt to use the following code it breaks down and displays Aug, 12 2013, which is not what I want...
// Set up the date formatter
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setTimeStyle:NSDateFormatterNoStyle];
[dateFormatter setDateStyle:NSDateFormatterMediumStyle];
dateFormatter.dateFormat = @"EEE, MMM d";
[dateFormatter setDoesRelativeDateFormatting:YES];
[dateFormatter setLocale:[NSLocale currentLocale]];