RE: [PHP] date
| From: | Daniel Masson | Date: | Tue, 03 Dec 2002 14:32:11 +0000 |
| Subject: | RE: [PHP] date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126853@lists.php.net to get a copy of this message | ||
Take a look at mktime() and date() ...
echo date("M",mktime(0,0,0,12,1,2002))
The first param of date is the format, "M" means month in string format
not number of month, and mktime paramas are:
int hour, int minute, int second, int month, int day, int year
This should work
Hi,
please could someone tell me how i can return a month in text from an
int ie
getMonth(12)
returns Decmber. Is this possible?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php