Difference between months

From: Date: Tue, 25 Mar 2003 19:55:56 +0000
Subject: Difference between months
Groups: php.general 
Request: Send a blank email to php-general+get-140994@lists.php.net to get a copy of this message
How do I subtract the difference of months between two dates? For instance, if one date is 2003-12 and the other is 2002-08, I need to know that there are 16 months between them. If one date is 2003-04 and the other is 2003-01, I need to know that there are 3 months between them. How can I do this?

« previous php.general (#140994) next »