handsontable
handsontable copied to clipboard
Date validator - `correctFormat` returns wrong date
Describe the bug
Hello, I was trying to use the correctFormat option to correct inputs from the user to a desired format but it doesn't work as expected.
In the example below I'm trying to type an ISO 8601 format date and the returned date by correctFormat is wrong.
The date format I'm using to test is MMM DD, YYYY.
Video/Screenshots
https://github.com/user-attachments/assets/8d323d2c-6c00-4c10-af5f-d8189b8141fe
Provide a link to the demo with the bug reproduction
https://react-grdkme.stackblitz.io
Handsontable version
14.6.1
Framework version
React 18
Your environment
Chrome 130.0.6723.70; MacOS 15.0.1
Thank you for sharing the issue report as well.
This way it will be easier for the community to track changes and share their feedback.