iOS: Compare two dates
According to Apple documentation of NSDate compare: Returns an NSComparisonResult value that indicates the temporal ordering of the receiver and another given date. – (NSComparisonResult)compare:(NSDate *)anotherDate Parameters anotherDate The date with which to compare the receiver. This value must not be nil. If the value is nil, the behavior is undefined and may change in … Read more