I have objects of Date type.
I want to compare them, and I have written an if condition in the following way:
if (([startDate1 isEqualToDate:[self g
I really liked Luke's answer, and it worked like a charm.
I used something like this:
If ([enteredDate compare: [NSDate Date]]== NSOrderedSame || NSOrderedDescending)
{
//Do Something if the enteredDate is later or the same as today
}else
{
//if the enteredDate is before today's date
}
I'm not sure if that helps, but just to reiterate what Luke had written.