I'm using a UIDatePicker in time mode to get the time. I'm trying to display the time selected in a label. The following code doesn't work
NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init];
[outputFormatter setDateFormat:@"h:mm a"];
label.text = [outputFormatter stringFromDate:self.datePicker.date];
[outputFormatter release];