try the mktime function
bastien
From: "Shay" <[EMAIL PROTECTED]> Reply-To: "Shay" <[EMAIL PROTECTED]> To: [email protected] 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
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
