Re: Month in a numeric form

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

 



Ron Piggott (PHP) wrote:

>Is there a way I am able to use the DATE command to convert January to
>1, February to 2, etc.
>
>  
>
What is wrong with date()?
www.php.net/date

$month = 'Jan';
$numericMonth = date('m', strtotime("$month 01 2000");

Travis Doherty

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux