by the following way using html -
Date of Birth (mm/dd/yy)<br><input type="text"
name="dob" size="8" maxlength="8" class="txt">
after the form have been submitted and dob was
past as POST data,extract the individual parts
of the date.first make use of the explode function
as follows-
array = explode("/", $dob);
$dobmonth = $array[0];
$dobday = $array[1];
if ($array[2] > 80)
$dobyear = "19" . $array[2];
else
$dobyear = "20" . $array[2];
$fdob = "$dobyear-$dobmonth-$dobday";
here the individual parts were extracted
as dobyear,dobmonth,dobday.