Hi, I'm simply wanting a time interval between now and a date selected by a date picker:
Code:
-(IBAction)dateChanged {
NSTimeInterval interval = [[NSDate date] timeIntervalSinceDate:[datePicker date]];
NSString *displayString = [NSString stringWithFormat:@"%.0f", interval];
displayLabel.text = displayString;
}
But the only thing it returns is nan. any help would be appreciated