Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with leap year while typing #659

Open
2 tasks done
kumarrsk opened this issue Apr 10, 2024 · 0 comments
Open
2 tasks done

issue with leap year while typing #659

kumarrsk opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kumarrsk
Copy link

Before you start - checklist

  • I followed instructions in documentation written for my React-Date-Picker version
  • I have checked if this bug is not already reported

Description

Hi,
I have set the date format on my date picker as MM/dd/yyyy.
However, when the user writes a date in the input, for example 02/29/200 , the date picker value becomes 03/01/200 , so it looks like the date format is still the original for the user input.
Has anyone had this issue before and knows a solution?

Steps to reproduce

change the format to MM/dd/yyyy
type 02/29/200
it will change to 03/01/200

Expected behavior

till needs to wait to add complete year

Actual behavior

changing the date to next day

Additional information

No response

Environment

  • Browser (if applicable):
  • React-Date-Picker version:
  • React version:
@kumarrsk kumarrsk added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant