note 76570 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 02:47:39 +0000 |
| Subject: | note 76570 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141988@lists.php.net to get a copy of this message | ||
Note Submitter: luis dot sv at gmail dot com
----
In relation to soreenpk at yahoo dot com's message:
That code doesn't work for two dates with a difference larger than a year, for example:
$digest_date = "2006-04-14";
$date2="2007-04-15";
$date_diff = date("d",strtotime($date2)) -
date("d",strtotime($digest_date));//$date_diff = 1