[NSString stringWithFormat:@"%@",[NSDate date]];
//当前时间前一天
[NSString stringWithFormat:@"%@",[NSDate dateWithTimeIntervalSinc
dateWithTimeIntervalSinc
//获得系统时间
NSDate *
NSDateFormatter
[dateformatter setDateFormat:@"HH:mm"];
NSString *
//[dateformatter setDateFormat:@"YYYY-MM-dd-HH-mm-ss"];
//NSString *
//获得系统日期
NSCalendar
NSUInteger
NSDateComponents * conponent= [cal components:unitFlags fromDate:senddate];
NSInteger year=[conponent year];
NSInteger month=[conponent month];
NSInteger day=[conponent day];
NSString *