please could someone help me for a code to validate DOB i got this code on the web but doesnt work i want to validate dd/mm/yyyy or any other format is fine by me.
if(preg_match("/dob/i",$field))
{
if(!preg_match("“/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/”",$value)) code from web
{
$errors[]="$value is not a valid dob please enter only year.";
}
}