I have a UIDatePicker and a UILabel to display the chosen date. Right now, the date is displayed as '2013-8-30 10:30:54 +0000'. I would like the date to instead be displayed as '00:00:00:00' in the order 'dd:hh:mm:ss. Then I would like to initiate a timer from an IBAction that begins counting down from the chosen date in the display for 'dd:hh:mm:ss'. any help or reference code that I could analyze would be greatly appreciated. I'm new and completely self taught. Thanks in advance. Cheers!
@synthesize picker;
@synthesize label;
-(IBAction)displayDate:(id)sender {
NSDate *selected = [picker date];
NSString *date = [selected description];
self.label.text = date;
}
- (void)viewDidLoad {
NSDate *now = [NSDate date];
[picker setDate:now animated:YES];
self.label.text = [now description];
}
@end