In my app, want to get the day (i.e. Sunday, Monday,etc.) from the date.
Sunday
Monday
My code is as follow:
NSDate *currentDate = [NSDat
NSDateFormatter* theDateFormatter = [[NSDateFormatter alloc] init]; [theDateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4]; [theDateFormatter setDateFormat:@"EEEE"]; NSString *weekDay = [theDateFormatter stringFromDate:[NSDate date]];