I'm trying to validate a date format in PHP "01/02" Day and Month. Anyway, i can't get this to work. Dose anyone know what i've done wrong in this case? It keeps saying my date is not valid for some reason..
if(!preg_match('/^((0[1-9])|(1[0-2]))\/(\d{2})$/',$postDate)) {
$array['error'] = 'true';
$array['errorMessage'] = 'Ugyldig dato (DD/MM)';
}