RE: [PHP] Counting months between two dates

From: Date: Tue, 02 Apr 2002 19:11:10 +0000
Subject: RE: [PHP] Counting months between two dates
Groups: php.general 
Request: Send a blank email to php-general+get-91197@lists.php.net to get a copy of this message
if done in mysql: SELECT PERIOD_DIFF(DATE_FORMAT("2002-06-05","%Y%m"),(DATE_FORMAT("2001-08-27","%Y%m ") ); -----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

« previous php.general (#91197) next »