Hi. I am trying to cut the portions of a date XX/XX/XXXX where Xs are numbers
This is a portion of my code:
$date = "9/2/1983";
$pos1 = strpos($date, "/");
$pos2 = strpos($date, "/", $pos1+1);
echo $pos1."
";
echo $pos2."
";
$day = substr($date, 0, $pos1);
$month = substr($date, $pos1+1, $pos2-1);
$year = substr($date, $pos2+1, strlen($date));
it seems that i cannot get the month correctly. I can't understand why.
Note that the date will be entered from a form and will have a british type (Day/Month/Year).
help!!!

)
Thank you