摘要:
NSUInteger componentFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit;NSDateComponents *components = [[NSCalendar currentCalendar] components:componentFlags fromDate:d];NSInteger year = [components year];NSInteger month = [components month];NSInteger day = [components day];NSStrin 阅读全文