If I have a date like 03/31/2025:
Typing "02" into the month input will result in this:
This is because February correctly doesn't allow 31 days, however it changes the month value we just input to "03" instead of the "02" we typed.
Instead we should detect this situation and handle it somehow. e.g., we could indicate that the day value is invalid for the month.
If I have a date like 03/31/2025:
Typing "02" into the month input will result in this:
This is because February correctly doesn't allow 31 days, however it changes the month value we just input to "03" instead of the "02" we typed.
Instead we should detect this situation and handle it somehow. e.g., we could indicate that the day value is invalid for the month.