RE: [PHP] Counting months between two dates
| From: | Rick Emery | Date: | Tue, 02 Apr 2002 18:38:50 +0000 |
| Subject: | RE: [PHP] Counting months between two dates | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-91190@lists.php.net to get a copy of this message | ||
John,
Are you pulling dates from mysql? If so, let mysql do it for you.
If you don't know how, ask again.
-----Original Message-----
From: John Hughes [mailto:john@jomari.com]
Sent: Tuesday, April 02, 2002 12:33 PM
To: php-general@lists.php.net
Subject: [PHP] Counting months between two dates
I want to determine the number of months between two dates. Is there a
function in PHP or a way to make strtotime do the job?
For instance, how many months between 2001-08-27 and 2002-06-05.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php