Re: Converting the Month from a word into the numerical expression
| From: | Jeffrey | Date: | Fri, 07 Oct 2005 08:14:01 +0000 |
| Subject: | Re: Converting the Month from a word into the numerical expression | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40482@lists.php.net to get a copy of this message | ||
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: strtotimeSee http://php.belnet.be/manual/en/function.strtotime.php Good luck, Jeffrey