note 58993 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 15 Jan 2006 12:36:51 +0000 |
| Subject: | note 58993 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101812@lists.php.net to get a copy of this message | ||
Note Submitter: wilhelm dot moser at demos dot at
----
function DayDiff($StartDate, $StopDate)
{
// converting the dates to epoch and dividing the difference
// to the approriate days using 86400 seconds for a day
//
return (date('U', strtotime($StopDate)) - date('U', strtotime($StartDate)))
/ 86400; //seconds a day
}