RE: strtotime: Last Month problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



try the mktime function

bastien

From: "Shay" <mastershay@xxxxxxxxxxx>
Reply-To: "Shay" <mastershay@xxxxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject:  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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux