Re: Date problem?
| From: | Sebastian | Date: | Thu, 23 Dec 2004 00:56:29 +0000 |
| Subject: | Re: Date problem? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205031@lists.php.net to get a copy of this message | ||
try +one month
----- Original Message -----
From: PHP
To: php
Sent: Wednesday, December 22, 2004 6:38 PM
Subject: [PHP] Date problem?
echo date('F',strtotime("next month"));
This is printing February right now. Does this sound right or is this a but in strtotime()? is
"next month" a valid parameter?
and yes, I am sure our server is set to December(todays date).
echo date('F',strtotime("last month"));
Does give me November as it should
------------------------------------------------------------------------------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004
------------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php