We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We use a three field style Date of Birth pattern with a month select, day input, and year input.
I have a Javascript function to validate the age > 5 , < 110 (see below);
validateAge(year,month,day) { const max_year = new Date().getFullYear() - 110 ; const min_year = new Date().getFullYear() - 5 ; const _month = new Date().getMonth() + 1; const _day = new Date().getDay(); const dateofbirthDate = new Date(year + "-"+month+"-"+day); const mindate = new Date( min_year+ '-'+_month+'-'+_day); const maxdate = new Date(max_year+ '-'+_month+'-'+_day); if(dateofbirthDate <= mindate && dateofbirthDate >= maxdate){ return true; } else return false; }
We use bouncer for our validation, but how would I/could I incorporate this in to bouncer with customValidations?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We use a three field style Date of Birth pattern with a month select, day input, and year input.
I have a Javascript function to validate the age > 5 , < 110 (see below);
We use bouncer for our validation, but how would I/could I incorporate this in to bouncer with customValidations?
The text was updated successfully, but these errors were encountered: