NSDate *date = [NSDate date];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc]init];
[dateFormat setDateFormat:@\"MM/dd/yyyy\"];
NSLog([@\"today is \" stringBy
if ([date compare:firstBirthdayDate] == NSOrderedAscending){
NSLog(@"First date is earlier than today");
}
else{
NSLog(@"First date is later than today");
}
if ([date compare:secondBirthdayDate] == NSOrderedAscending){
NSLog(@"Second date is earlier than today");
}
if ([firstBirthdayDate compare: secondBirthdayDate] == NSOrderedSame)
NSLog(@"First date is the same as second date");