note 68708 deleted from function.date by bobby

From: Date: Thu, 07 Sep 2006 18:26:53 +0000
Subject: note 68708 deleted from function.date by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116865@lists.php.net to get a copy of this message
Note Submitter: dobr ---- If you want to get amount of days between to dates you can use this : <?php $datet = getdate(strtotime("2006-08-08")); // or date("Y-m-d") $datey = getdate(strtotime("2006-08-09")); $t=$datey['yday']-$datet['yday']; // between my two dates is '1' day echo $t; ?>

« previous php.notes (#116865) next »