NSString *[email protected]"2015-09-30";
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"yyyy-MM-dd"];
myData = [dateFormatter dateFromString:dateString];
时间: 2024-11-19 01:47:36
NSString *[email protected]"2015-09-30";
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"yyyy-MM-dd"];
myData = [dateFormatter dateFromString:dateString];