Strtotime weirdness

From: Date: Thu, 27 Mar 2003 05:55:53 +0000
Subject: Strtotime weirdness
Groups: php.general 
Request: Send a blank email to php-general+get-141171@lists.php.net to get a copy of this message
When I have a date, March 31, 2003, and I want to subtract 1 month using strtotime, I find it will literally subtract a month, so March 31, 2003 minus one month will result in February 31, 2003, or rather, March 3, 2003. Is there any way of making March 31, 2003 minus one month equal February 28/29, 2003?

« previous php.general (#141171) next »