Skip to content

Date format requirements are too strict after v8 #6164

@JosephBrooksbank

Description

@JosephBrooksbank

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:

  1. View this codesandbox: https://codesandbox.io/p/sandbox/7mdv89
  2. Change the version of this package in package.json to v7.6.0
  3. Paste any of the example dates or try your own
  4. go back to package.json and change to 8.8.0
  5. Try the same examples again
  6. :(

Expected behavior
Date and time formats other than the exact specified work when strictParsing is false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions