IOS: Converting NSDate to NSString gives nil value -
where mistake? have nsdate format (data: 14/05/2013 10:52:27) , have obtain nsstring.
nslog(@"data: %@",lettureobj.data); nsdateformatter *outputdateformatter = [[nsdateformatter alloc] init]; [outputdateformatter setdateformat:@"dd/mm/yyyy hh:mm:ss"]; nsstring *data = [outputdateformatter stringfromdate:lettureobj.data];
the problem here lettureobj.data nsstring , need convert date primarly have nsdate object
Comments
Post a Comment