For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2005 > Re: [PHP-DB] Converting the Month from a word into the numerical









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Converting the Month from a word into the numerical
Jeffrey

2005-10-07, 3:55 am

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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com