I have a form, with an input that is called Date Birth and is of date format, what I need is to validate the server side, using php that that input is a date.
for example, validate that the name is mandatory:
if (trim($nombre)==""){
$errores['nombre'] = "¡El nombre es obligatorio!";
$error = true;
}
How would it be in that case to validate the date? thanks.