Interaction between cellDates and dateNF #653
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#653
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm trying to parse some dates from a base64 string or a binary string.
The parsing configuration:
The data example:
With base64 parsing type:
https://jsfiddle.net/fd30kLg6/1/
with binary parsing type:
Am I misunderstanding how cellDates and dateNF works?
Thanks for reporting @mmancosu ! Your understanding is correct, cellDates:true should be generating date cells with type "d", cellDates:false should be generating numeric cells, dateNF should override the default date format. Neither option has been applied to CSV, we'll fix it in the next push.
Background:
cellDates
is an option that mainly pertains to the XLS/XLSX/XLSB file formats. XLS and XLSB don't really have a native date type -- they store numbers and the "date" comes from the number format. For example, Saturday May 13 2017 is the number 42868:(XLSX technically has a date cell type but Excel generates XLSX files that solely use the number form)
For example, with
sheetjs.xlsx in node:
@mmancosu the current master should honor the cellDates/dateNF options for CSV. We'll ensure other formats also honor the options before closing the issue
@SheetJSDev
This was helpful! Thank you. I would like to someday devote some time to helping you guys make better documentation if thats an option?.. Give back to SheetJs a bit and get my company to give a donation once we have completed this project.