Reset previously selected day if the day is greater than maxday of the month. Then form validation status will be invalid.
Alternately we can assign max date of the month instead of resetting the date. However, if the user changes the year (Leap year) / month then the date will remain previous year's / months' maxdate.
Reset previously selected day if the day is greater than maxday of the month. Then form validation status will be invalid. Alternately we can assign max date of the month instead of resetting the date. However, if the user changes the year (Leap year) / month then the date will remain previous year's / months' maxdate.