Re: Converting the Month from a word into the numerical expression

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

 



Ron Piggott wrote:

I have the word for the month stored in the variable $month   In this
example $month may be equal to "June".  I wonder if there is a way to use
the DATE function to convert this into a numberical expression --- in this
example 06   Ron

Indeed there is: strtotime
See http://php.belnet.be/manual/en/function.strtotime.php

Good luck,

Jeffrey

--
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