how can i check if the date entered by the date picker is before a certain day which is stored as a variable, the year does not matter.
for example, i need to check the date which is picked on the date picker to let me know if its before the 5th of January or after the 5th of January. the result should trigger an IF function if its true.
NSDate * dateOne = [NSDate date];
NSDate *dt1 = NSDate date];
if([dateOne compare:dateTwo] == NSOrderedAscending) {
NSLog(@"TRUE");
}