我需要有关此代码的帮助:
NSDateFormatter *df = [[NSDateFormatter alloc]init];
[df setDateFormat:@"yyyy/MM/dd"];
NSDate* now = [NSDate date];
NSString* myString = [df stringFromDate:now];
NSDate *date1=[[NSDate alloc]init];
NSDate *date2=[[NSDate alloc]init];
date1 = [df dateFromString:myString];
在此我按照dateformatter 2013-12-06 18:30:00 +0000
date2 = [df dateFromString:purchase_date];