How can I reset the current date retrieved from [NSDate date] but then change the time to 10:00 in the morning.
NSDate *currentDate = [NSDate date]; NSDateComponents *comps = [[NSDateComponents alloc] init]; [comps setHour:10]; NSDate *date = [gregorian dateByAddingComponents:comps toDate:currentDate options:0]; [comps release];
Not tested in xcode though :)