Posted By

tbass134 on 05/30/11


Tagged

UIDatePicker


Versions (?)

Convert UIDatePicker date to readable date


 / Published in: Objective C
 

  1. NSDateFormatter *newFormatter = [[[NSDateFormatter alloc] init] autorelease];
  2. [newFormatter setDateStyle:NSDateFormatterShortStyle];
  3. [newFormatter setTimeStyle:NSDateFormatterMediumStyle];
  4. NSString *dateString = [newFormatter stringFromDate:self.dp.date];

Report this snippet  

You need to login to post a comment.