Add days to a date
Copy this code and paste it in your HTML
function dayadd($g,$dayYmd) {
//add $g days to $dayYmd (date is in YYYY-MM-DD format)
$cc = 24*60*60*$g + 60*60 + $d;
return date("Y-m-d",$cc); }
URL: http://www.barattalo.it
Report this snippet
Comments
Subscribe to comments