I can find how to get if a date is between a range, but I cant seem how to create a date at a specific time.
What would be the simplest way to see if [NSDate date] is be
You could just use the class NSDate
to grab the time on the iPhone.
NSDate * today = [NSDate date];
NSCalendar * cal = [[NSCalendar alloc] initWithCalendarIdentifier: NSGregorianCalendar];
NSDateComponents * comps = [cal components:NSHourCalendarUnit fromDate:today];
if ( [comps hour]>0 && [comps hour] < 12 )
NSLog(@"Good morning, foo");
if ( [comps hour] > 12 && [comps hour] < 17 )
NSLog(@"Good afternoon, foo");
if ( [comps hour] >17 && [comps hour]<24 )
NSLog(@"Good evening, foo");
Reference: NSDate Documentation