Open
Description
Describe the bug
The code shows an error if the entered month is February, April, June, September, and November in the age calculator. As these months contain only 30 days, the code shows an error when 31 is given in the DAY section. And especially in the case of February as it has only 28 days sometimes 29, therefore 30 as an input in the DAY section again throws an error.
To Reproduce
Steps to reproduce the behavior:
- Go to age-calculator and run the code.
- Enter the month as 2(February).
- Enter 31 in the day section.
- See the error.
Expected behavior
The code must not show the error to any input in either month, year, or day section. It should handle all the values or can show a pop-up message that the number of days for these specific months can't exceed 30.
Screenshots
Additional context
I can fix this problem. Please grant me this opportunity!