Skip to content

issue with leap year while typing #659

Closed as not planned
Closed as not planned
@kumarrsk

Description

@kumarrsk

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions