Someone must have written this before :-)
I need a validation attribute for date of birth that checks if the date is within a specific range - i.e. the user hasn't inputted a date that hasn't yet happened or is 150 years in the past.
Thanks for any pointers!
You could use the built-inRange
attribute: