- (NSDate *)jsDateFromBeginDate:(NSDate *)beginDate todays:(int)days
{
NSDate *dateTemp = [[NSDate alloc]init];
NSTimeInterval interval = 24*60*60*days;
dateTemp = [dateTemp initWithTimeInterval:interval sinceDate:beginDate]; return dateTemp;
}
NSDateFormatter * dateFormatter = [[[NSDateFormatter alloc]init]autorelease];
NSDate*nowDate = [NSDate date];
NSTimeInterval interval =24*60*60*1; //1:天数
NSDate*date1 = [nowDate initWithTimeIntervalSinceNow:+interval];
[dateFormattersetDateFormat:@"yyyy-MM-dd"];
pLabDate.text = [NSStringstringWithFormat:@"%@",[dateFormatter stringFromDate:date1]];