Return to Snippet

Revision: 9461
at November 8, 2008 07:02 by ginoplusio


Initial Code
function dayadd($g,$dayYmd) {
	//add $g days to $dayYmd (date is in YYYY-MM-DD format)
	$d = strtotime($dayYmd);
	$cc = 24*60*60*$g + 60*60 + $d;
	return date("Y-m-d",$cc);
}

Initial URL
http://www.barattalo.it

Initial Description

                                

Initial Title
Add days to a date

Initial Tags
date

Initial Language
PHP