note 14822 deleted from ref.datetime by victor

From: Date: Mon, 09 Dec 2002 18:50:38 +0000
Subject: note 14822 deleted from ref.datetime by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40610@lists.php.net to get a copy of this message
Simple addDays function: add $days to a typical $datetime value (see return). function addDays($datetime, $days) { $dd = strtotime($datetime); $dd2 = $dd + 3600*24*$days; return date("Y-m-d H:i:s", $dd2); }

« previous php.notes (#40610) next »