-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Chrome for CSV file Date format converts days to months #2704
Comments
CSV date parsing eventually passes through the Date constructor, and Chrome's parser is notoriously problematic. Can you run |
Output from console
When I do copy(test) and paste in notepad it gives me "2022-05-05T22:00:00.000Z". |
any solution for this issue even though I m facing the same issue while converting the CSV to xlsx date format is getting changes from dd-mm-yyyy to mm/dd/yyyy when downloading the file attaching the code below if anyone has any suggestions it will be great help
|
Sorry to say that but because of this problem we moved to the other library which solved this issue. |
Hi, is there any update on this issue? |
After import of CSV file where columns have values like 31.10.2022 which is format "dd.MM.yyyy" with setting cellDates false or true format on Chrome browser (language set to en or pl version (both tested)) is changed to mm/dd/yyyy sometimes m/d/yy.
It is impossible to detect if the day is a month or a month is a day when values are smaller than 12. There is no workaround for this issue. Note that resolved data in case of Date (cellDates: true) for xlsx file also convert days to months. In CSV files forcing columns to have a specific date format doesn't help.
For Firefox (which uses Geko engine, not V8) keep the good format.
My method to convert File to JSON.
You should be able to recreate this issue here: oss.sheetjs.com with CSV with columns of format dd.MM.yyyy
The text was updated successfully, but these errors were encountered: