Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- month name predefined function?
April 30, 2005, 1:43 pm
rate this thread
Re: month name predefined function?
On 30 Apr 2005 08:43:06 -0700, firstname.lastname@example.org wrote:
Not easily, and only in English. You could use
echo date( 'F', mktime( 12, 0, 0, $month, 1, 2000, 0 ) );
(Use midday to avoid problems with daylight saving time).
Easier and less error prone would be
$monthname = array( 1 => 'January', 'February', 'March', <etc> );
Firefox Web Browser - Rediscover the web - http://getffox.com /
Thunderbird E-mail and Newsgroups - http://gettbird.com /