Skip to content

Typing bug with dateformat #5175

@dmaggiore-sorint

Description

@dmaggiore-sorint

Describe the bug
When typing a date without zeros and with a 2digit year, when the day is smaller than 13, it invert the day and the month even though the dateFormat is "dd/MM/yyyy"

To Reproduce

  1. react-datepicker with dateFormat="dd/MM/yyyy"
  2. type a date like '4/8/24" (4 August 2024)

Expected behavior
I expect to see the date 4th of August 2024 in the Datepicker (and also as value) and not 8th of April 2024

Metadata

Metadata

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