note 73909 deleted from function.date by betz
| From: | betz@php.net | Date: | Thu, 15 Mar 2007 09:27:09 +0000 |
| Subject: | note 73909 deleted from function.date by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124477@lists.php.net to get a copy of this message | ||
Note Submitter: soreenpk at yahoo dot com
----
we can find the different in days between two date e.g now and some past date from db throught the
following simple line of code;
$digest_date = "2007-03-15";
$date_diff = date("d",strtotime(date('y-m-d'))) -
date("d",strtotime($digest_date));