Hello, I am using this function below to validate date, when the user enter a valid date format every is fine and it apears on my DB, but when the user enter any thing like abcde or 22107666, i expect it to give an error message as shown on the code, but instead it gives a warning.
Warning: extract() expects parameter 1 to be array, null given in C:

please could someone help

 function Valid_Date_Format($date)

      return TRUE;

    return FALSE; 
    $errors[] = "$value is not a valid date of birth.";