-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Reading data formatted as date always returns numbers #47
Comments
@demontiejr Hi. May I ask you to add tests for your new function?! |
thanks, for you contribution! |
Sure. I closed that particular PR because I saw it was missing a few things. I'll send a new one and include the tests. |
@plandem just a friendly bump. :) |
hey. thanks for PR. I checked it, but wanted to double-check for these few changed format code - you replaced “-“ with “/“, so i wanted to check official docs about these codes. I believe that used from official docs, but could be wrong. will do it on weekends! |
Hey @plandem, did you have the change to look into the PR? |
Hi,
I'm trying to use the library to process very large files and they contain date columns. When reading the values, I'm always getting numbers (the underlying numeric value for the date). Since I don't know in advance what's the data type for a particular column, I'd like to be able to identify it from the formatting.
I tried using
cell.Type() == types.CellTypeDate()
to decide whether I could explicitly get the value parsed toTime
(with theDate
function) but it's always returning false. I then tried to get the style ID and use the style sheet to get the info and check whether it's a date, but then I saw that this method is not implemented.xlsx/style_sheet.go
Lines 214 to 227 in 4538b54
Is there a way I can identify dates right now? If not, can you point me to how I can solve this issue so I can send a pull request?
Thanks,
Demontiê
The text was updated successfully, but these errors were encountered: