Revision: 60307
Updated Code
at November 1, 2012 01:16 by code4mac
Updated Code
switch ([dateOne compare:dateTwo]) {
case NSOrderedAscending:
// dateOne < dateTwo
break;
case NSOrderedSame:
// The dates are the same
break;
case NSOrderedDescending:
// dateOne > dateTwo
break;
}
Revision: 60306
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 1, 2012 01:04 by code4mac
Initial Code
if ([dateOne compare:dateTwo])
{
NSLog(@"dateOne is equal to dateTwo");
}
Initial URL
Initial Description
Compare 2 NSDate
Initial Title
Compare 2 NSDate
Initial Tags
Initial Language
Objective C