Possible Duplicate:
Objective C - How can i get the weekday from NSDate?
How do I get the day of the week using NSDate and show using NSLog?
I wonder the current day, such as today.
Ex: NSLog(@"the day is:",day)
Resp: "the day is: Monday"
NSDateFormatter* day = [[NSDateFormatter alloc] init];
[day setDateFormat: @"EEEE"];
NSLog(@"the day is: %@", [day stringFromDate:[NSDate date]]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With