Date Calc using PHP

Need to calculate a date in the future or past?

$eight_days_ago = date('Ymd', mktime(0,0,0,date("m"),date("d")-8,date("Y")));

Submit a Comment

Your email address will not be published. Required fields are marked *