I have a form where the user types a day (number between 1 and 31) and then selects a month from a list and then types a year.
The problem is that when a date such as (31 February) will throw the following error:
day is out of range for month
Is there a way I can check if the day is valid for that month (and year if it is a leap year) in the form?