How to validate a date using Zend? When the user signs up, I need to validate the anniversary date and see if it is over 18.
I receive 3 fields - day, month and year and would like to validate the registration only for those over 18
I found this code, but I do not know how to enter the +18 parameter
$validator = new Zend_Validate_Date(array(
'format' => 'dd-mm-yyyy',
'locale' => $yourLocale
);
Thank you