ios - Convert NSDict to NSDate -
this question has reply here:
nsdateformatter question 3 answersi trying convert nsdict nsdate. can suggest example.
thanks in advance.
nssstring *str = [dict objectforkey:@"billdate"]; nsdateformater *f = [[nsdateformatter alloc] init]; nslocale *uslocale = [[nslocale alloc] initwithlocaleidentifier:@"en_us"]; f.locale = uslocale; f.dateformat = @"mm/dd/yyyy"; // format string uses format patterns unicode technical standard #35 nsdate *date = [f datefromstring:str];
ios date
No comments:
Post a Comment