NSString *startTime = self.model.startDate;
NSDateFormatter *startFormatter = [[NSDateFormatter alloc] init];
[startFormatter setDateStyle:NSDateFormatterMediumStyle];
[startFormatter setTimeStyle:NSDateFormatterShortStyle];
[startFormatter setDateFormat:@"YYYY/MM/dd"];
NSDate *startComfromTimesp = [NSDate dateWithTimeIntervalSince1970:(NSTimeInterval)[startTime intValue]];
NSString *startConfromTimespStr = [startFormatter stringFromDate:startComfromTimesp];
//终止时间转换
NSString *endTime = self.model.endDate;
NSDateFormatter *endFormatter = [[NSDateFormatter alloc] init];
[endFormatter setDateStyle:NSDateFormatterMediumStyle];
[endFormatter setTimeStyle:NSDateFormatterShortStyle];
[endFormatter setDateFormat:@"YYYY/MM/dd"];
NSDate *endComfromTimesp = [NSDate dateWithTimeIntervalSince1970:(NSTimeInterval)[endTime intValue]];
NSString *endConfromTimespStr = [endFormatter stringFromDate:endComfromTimesp];
//时间Label
UILabel *timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, CGRectGetMaxY(addressLabel.frame)+ 8, imageView.frame.size.width, 14)];
// UILabel *timeLabel = [[UILabel alloc] initForAutoLayout];
timeLabel.text = [NSString stringWithFormat:@"时间:%@-%@",startConfromTimespStr,endConfromTimespStr];
// timeLabel.font = [UIFont systemFontOfSize:15];
[timeLabel setFont:[UIFont fontWithName:FONT_FZLTH size:FONT_DESCRIPTION]];
[self.view addSubview:timeLabel];
NSDateFormatter *startFormatter = [[NSDateFormatter alloc] init];
[startFormatter setDateStyle:NSDateFormatterMediumStyle];
[startFormatter setTimeStyle:NSDateFormatterShortStyle];
[startFormatter setDateFormat:@"YYYY/MM/dd"];
NSDate *startComfromTimesp = [NSDate dateWithTimeIntervalSince1970:(NSTimeInterval)[startTime intValue]];
NSString *startConfromTimespStr = [startFormatter stringFromDate:startComfromTimesp];
//终止时间转换
NSString *endTime = self.model.endDate;
NSDateFormatter *endFormatter = [[NSDateFormatter alloc] init];
[endFormatter setDateStyle:NSDateFormatterMediumStyle];
[endFormatter setTimeStyle:NSDateFormatterShortStyle];
[endFormatter setDateFormat:@"YYYY/MM/dd"];
NSDate *endComfromTimesp = [NSDate dateWithTimeIntervalSince1970:(NSTimeInterval)[endTime intValue]];
NSString *endConfromTimespStr = [endFormatter stringFromDate:endComfromTimesp];
//时间Label
UILabel *timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, CGRectGetMaxY(addressLabel.frame)+ 8, imageView.frame.size.width, 14)];
// UILabel *timeLabel = [[UILabel alloc] initForAutoLayout];
timeLabel.text = [NSString stringWithFormat:@"时间:%@-%@",startConfromTimespStr,endConfromTimespStr];
// timeLabel.font = [UIFont systemFontOfSize:15];
[timeLabel setFont:[UIFont fontWithName:FONT_FZLTH size:FONT_DESCRIPTION]];
[self.view addSubview:timeLabel];