I have the following code that formats my date and time into the string like:
Monday, October 25 2013 - 14:56:34
NSDate *today = [[NSDate alloc] init];
dateFormatter = [[NSDateFormatter alloc] init];
[self.dateFormatter setDateFormat:@"EEEE, MMMM dd YYYY - HH:mm:ss"];
NSString *currentTime = [self.dateFormatter stringFromDate: today];
self.timerLabel.text = currentTime.uppercaseString;
It works well. But how do I put the "th" or "rd" or "st" appropriately unto the date i.e. after the 25 in the example above?