note 15190 deleted from ref.datetime by victor

From: Date: Mon, 09 Dec 2002 18:51:00 +0000
Subject: note 15190 deleted from ref.datetime by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40611@lists.php.net to get a copy of this message
For all of us who speak Spanish, here is a function that adds a determinated amount of days to a given date... the format for the incoming and the outgoing date is: DD-MM-YYYY ----------------------- Para todos quienes hablamos español, he aquí una función que agrega una determinada cantidad de días a una fecha dada... el formato tanto para la fecha de entrada como para la de salida es: DD-MM-YYYY function agregaDias($fecha, $dias) { $t1 = mktime(0,0,0,substr($fecha,3,2),substr($fecha,0,2),substr($fecha,6,4)); $t2 = $t1 + 3600*24*$dias; return date("d-m-Y", $t2); }

« previous php.notes (#40611) next »