Whoops misunderstood the other one
$month = Date("m",strtotime($month));
Another option is to use an array and then invert it to get the value
$month="Jun";
$Months = array("Jan","Feb","Mar"..."Dec");
$Inv_Month = array_flip($Months);
$month_num = $Inv_Month($month);
bastien
From: "Ron Pigg
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: