function adddate($timesent,$daystoincrement=0,$monthstoincrement=0,$yearstoincrement=0){///echo "Original date is ".date("M-d-Y",$timesent);/*
$daystoincrement=32;
$yearstoincrement=-1;
$monthstoincrement=2;*/
$timesentnew=date("M-d-Y", mktime(0, 0, 0,date('m',$timesent)+$monthstoincrement,date('d',$timesent)+$daystoincrement,date('Y',$timesent)+$yearstoincrement));
//echo "Date after adding ".$daystoincrement." days, ".$yearstoincrement." years and ".$monthstoincrement."months equals " .$timesentnew."";
return $timesentnew;
}
echo adddate(time(),0,8,0);