Skip to content
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

Grinding rawNumbers to separate options #2749

Open
PavelKoroteev opened this issue Jul 27, 2022 · 1 comment
Open

Grinding rawNumbers to separate options #2749

PavelKoroteev opened this issue Jul 27, 2022 · 1 comment

Comments

@PavelKoroteev
Copy link

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
Copy link
Contributor

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants