RE: [PHP-DB] strtotime: Last Month problem
| From: | Bastien Koert | Date: | Wed, 30 Mar 2005 23:11:24 +0000 |
| Subject: | RE: [PHP-DB] strtotime: Last Month problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39077@lists.php.net to get a copy of this message | ||
try the mktime function
bastien
From: "Shay" <mastershay@comcast.net> Reply-To: "Shay" <mastershay@comcast.net> To: php-db@lists.php.net Subject: [PHP-DB] strtotime: Last Month problem Date: Wed, 30 Mar 2005 15:02:27 -0700 Hi, I'm trying to use strtotime("last month"), strtotime("-1 month"), or strtotime("1 month ago") to get the last month. However, it keeps returning March, not February. This started happening just yesterday, March 29th. This obviously has something to do with February's shorter amount of days, since I've never had this problem before. Anyone know a way around this? Thanks in advance. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php