<?php $workdate = date("d/m/y", time()); $deduc = 2; $date = DateTime::createFromFormat("d/m/y", $workdate); echo $date->modify("- $deduc days")->format('Y-m-d');
You have javascript disabled. You will not be able to edit any code.