Tuesday, 27 August 2013

iOS: Compare two less or equal NSDates

iOS: Compare two less or equal NSDates

I want to compare two dates and do something when one is less or equal
than the other, I tried to do it this way:
if ([self.system.systemInbetriebnahme compare:date] == NSOrderedDescending)
return nil;
But this removes the case when they are both equal is there a way to
compare dates with >= ?
Thank you

No comments:

Post a Comment