wojtekmaj / react-date-picker

A date picker for your React app.
https://projects.wojtekmaj.pl/react-date-picker
MIT License
1.27k stars 195 forks source link

issue with leap year while typing #659

Closed kumarrsk closed 3 months ago

kumarrsk commented 6 months ago

Before you start - checklist

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

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 14 days with no activity.