iphone - Retrieve date and time from UIDatePicker iOS -
i want retrieve date , time in format e.g "friday may 31, 2013 12:00 pm". how can achieve nsdateformatter?
nsdate *mydate = datepicker.date; nsdateformatter *dateformat = [[nsdateformatter alloc] init]; [dateformat setdateformat:@"cccc, mmm d, hh:mm aa"]; nsstring *prettyversion = [dateformat stringfromdate:mydate];
Comments
Post a Comment