you can use
NSString *actDate = @"/Date(1326067200000)/"; NSString *nDate = [[[[actDate componentsSeparatedByString:@"("] objectAtIndex:1] componentsSeparatedByString:@")"] objectAtIndex:0]; NSDate *date = [NSDate dateWithTimeIntervalSince1970:([nDate doubleValue] / 1000)];
On date you will get the actual date. Then you can format it in the format "MM / dd / yyyy" using
NSDateFormatter *dtfrm = [[NSDateFormatter alloc] init]; [dtfrm setDateFormat:@"MM/dd/yyyy"]; nDate = [dtfrm stringFromDate:date];
In nDate you will get the desired date in a formatted way.
source share