标签:
NSDate *theDate = self.datePicker.date//假设从datepicker中获取到时间 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; [dateFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"]; self.label.text = [dateFormatter stringFromDate:theDate];
标签:
原文地址:http://www.cnblogs.com/oscar1987121/p/5229069.html