Possible Duplicate:
how do I get the day of the week using NSDate and show using NSLog in iOS?
Using the following code.
NSDateFormatter* day = [[NSDateFormatter alloc] init];
[day setDateFormat: @"EEEE"];
NSLog(@"the day is: %@", [day stringFromDate:[NSDate date]]);
how do I put this value in a variable?
I want to use an if, for example:
if (day == "monday")
{
...
}