Grinding rawNumbers to separate options #2749

Open
opened 2022-07-27 13:38:23 +00:00 by PavelKoroteev · 1 comment
PavelKoroteev commented 2022-07-27 13:38:23 +00:00 (Migrated from github.com)

I have issue with some number column in excel with custom formatting,
whose do display the same as General format in Excel Viewer, but whose add $ prefix to csv value, when I get cvs from this file.

[$-ru-RU]0

With

rawNumbers: true

I successful get just number from number cell (get cell.v instead of cell.w).

But I have issue from date field, whose with this option returned as numbers.

Should we do more clarify options for this case?

I have issue with some number column in excel with custom formatting, whose do display the same as General format in Excel Viewer, but whose add $ prefix to csv value, when I get cvs from this file. ``` [$-ru-RU]0 ``` With > rawNumbers: true I successful get just number from number cell (get cell.v instead of cell.w). But I have issue from date field, whose with this option returned as numbers. Should we do more clarify options for this case?
SheetJSDev commented 2022-07-27 22:11:22 +00:00 (Migrated from github.com)

Under the hood, Excel actually stores numbers. The number format is what makes values act like dates.

If the origin of the worksheet is a file (you called read or readFile somewhere), you should be able to pass the option cellDates: true to keep date objects rather than the date codes.

Under the hood, Excel actually stores numbers. The number format is what makes values act like dates. If the origin of the worksheet is a file (you called `read` or `readFile` somewhere), you should be able to pass the option `cellDates: true` to keep date objects rather than the date codes.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#2749
No description provided.