Finding num of days b/t two dates.
| From: | Alex Fritz | Date: | Fri, 07 Dec 2001 22:48:46 +0000 |
| Subject: | Finding num of days b/t two dates. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77087@lists.php.net to get a copy of this message | ||
If somebody could help me with this, it would save me a lot of heartache. I
thought that this would be simple, but I can't seem to find a function
anywhere in PHP that has this capability and I can't seem to find any
external libraries for anything actually. I need to be able to give PHP a
start date and an end date and have it return the number of days between the
dates. If the first date is more recent than the second, I need it to give
me a negative number. Can somebody please help?
Alex