title: Formatting a time datepicker and displaying the time in a textfield
body: <p>I am trying to display the time in the datePicker in a textfield. I have gotten this far</p>
  
  <pre><code>UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(112, 88, 97, 30)];
  textField.borderStyle = UITextBorderStyleRoundedRect;
  textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
  textField.text=[NSString stringWithFormat:@"%@",[NSDate //what do I put here to put the datepicker time in the textfield]];
  [self.view addSubview:textField];
  
  UIDatePicker *datePicker = [[UIDatePicker alloc] init];
  datePicker.datePickerMode = UIDatePickerModeDate;
  [datePicker addTarget:self action:@selector(datePickerValueChanged:) forControlEvents:UIControlEventValueChanged];
  datePicker.timeZone = [NSTimeZone defaultTimeZone];
  datePicker.minuteInterval = 5;
  datePicker.datePickerMode = UIDatePickerModeTime;
  
  [textField setInputView:datePicker];
  </code></pre>
  
  <p>EDIT</p>
  
  <p>I dont have anything in the value did change but here it is </p>
  
  <pre><code>-(void)datePickerValueChanged:(id)sender{
  
  
  }
  </code></pre>