note 81924 deleted from function.date by derick
| From: | derick@php.net | Date: | Wed, 07 May 2008 18:14:29 +0000 |
| Subject: | note 81924 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139137@lists.php.net to get a copy of this message | ||
Note Submitter: ben at simplescripts dot com
----
A slightly less intense days-between calculator.
<?
$originaldate = "2008-01-01 12:01:01"; //any properly formated date
$ageindays = number_format(floor((date("U")-strtotime($originaldate))/86400),0);
print $ageindays . " days";
//output: 15 days
//or whatever the date happens to be right now.
?>