-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Describe the bug
Before v8.0.0, any of the following dates / times would work when typed/pasted into the datepicker (with showTimeSelect enabled, and the dateFormat of yyyy-MM-dd hh:mm aa):
12/05/2025
2025-12-16 3:31:01 PM
1/12/2024
On any version >= 8.0.0, none of these work. It is like strict is enabled. The EXACT format must be used, including a time! If no dateFormat is given it appears you must use dd/MM/yyyy
To Reproduce
Steps to reproduce the behavior:
- View this codesandbox: https://codesandbox.io/p/sandbox/7mdv89
- Change the version of this package in
package.jsontov7.6.0 - Paste any of the example dates or try your own
- go back to
package.jsonand change to8.8.0 - Try the same examples again
- :(
Expected behavior
Date and time formats other than the exact specified work when strictParsing is false.
Metadata
Metadata
Assignees
Labels
No labels