Skip to content

[GSSOC'23] Error in Months containing even number of days in AGE-Calculator #1446

Open
@Shiv-Expert2503

Description

@Shiv-Expert2503

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:

  1. Go to age-calculator and run the code.
  2. Enter the month as 2(February).
  3. Enter 31 in the day section.
  4. 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

Screenshot (75)
You can see the value error.

Additional context

I can fix this problem. Please grant me this opportunity!

Metadata

Metadata

Labels

gssoc23Issues created for/by the GirlScript Summer of Code'23 Participantslevel1Wiki or Major Documentation Work

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions