1
How to validate a date using Zend? When the user registers, I need to validate the birthday and see if it is older than 18 years.
I receive 3 fields - day, month and year and would like to validate the registration only for over 18
I found this code, but I do not know how to inform the parameter +18
$validator = new Zend_Validate_Date(array(
'format' => 'dd-mm-yyyy',
'locale' => $yourLocale
);
thank you
Welcome to Stack Overflow! Please explain the problem better, and if possible include a example of code that reproduces what is happening, because your question is too wide. See Help Center How to Ask.
– Jorge B.