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

Ability to get cell value by type #520

Closed
svip opened this issue Nov 20, 2019 · 1 comment
Closed

Ability to get cell value by type #520

svip opened this issue Nov 20, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@svip
Copy link

svip commented Nov 20, 2019

It would be useful to be able to get cell values as float64 or time.Time (which it is currently possible to set them as), e.g. GetCellFloatValue or GetCellTimeValue. An ability to check type like #417, would help here. An error could be returned if one requested the wrong type. Particularly dates can be hard to parse, considering the date format yielded by Excelize is a bit unusual. And it's not implausible that a user entered such a format as text, meaning some sort of code that wasn't a date. (Honestly, why doesn't Excelize return an ISO formatted time stamp, since it doesn't actually look like the date I see in Excel (which is usually locale based anyway)?)

@xuri xuri added the enhancement New feature or request label Nov 25, 2019
@xuri xuri closed this as completed in dad8f49 Sep 9, 2021
@xuri
Copy link
Member

xuri commented Sep 9, 2021

Thanks for your issue, I have added a new API GetCellType to support get cell data type, please upgrade to the master branch code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants