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
mydate = [NSDate date]; NSDateFormatter *dt2 = [ [NSDateFormatter alloc] init]; [dt2 setDateFormat:@"EEEE"]; NSString *day = [[NSString alloc] initWithFormat:@"%@",[dt2 stringFromDate:mydate]];