NSDate *date = [NSDate date]; NSDateFormatter *dateFormat = [[NSDateFormatter alloc]init]; [dateFormat setDateFormat:@\"MM/dd/yyyy\"]; NSLog([@\"today is \" stringBy
You cannot use < or > for comparing dates. You have to use the correct methods. Have a look at this post.
<
>