views:

37

answers:

2
+4  A: 

Use

- (NSComparisonResult)compare:(NSDate *)anotherDate

for any NSDate objects. It will return a NSComparisonResult.

enum {
  NSOrderedAscending = -1,
  NSOrderedSame,
  NSOrderedDescending
};
typedef NSInteger NSComparisonResult;
Paul Ardeleanu