Re: Date Stuff...
| From: | Chris Boget | Date: | Fri, 02 Aug 2002 13:00:54 +0000 |
| Subject: | Re: Date Stuff... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110818@lists.php.net to get a copy of this message | ||
> Given a date.... how would you work out number of months elapsed
> between DateInPast and DateNow?
( $monthTo - $monthFrom ) + (( $yearTo - $yearFrom ) * 12 )
I believe that's the correct equation for figuring out the number of months.
Chris