/ Published in: Objective C

Compare 2 NSDate
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
switch ([dateOne compare:dateTwo]) { case NSOrderedAscending: // dateOne < dateTwo break; case NSOrderedSame: // The dates are the same break; case NSOrderedDescending: // dateOne > dateTwo break; }
Comments
