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

xlsx2csv raw output #165

Closed
3 tasks done
aborruso opened this issue Sep 6, 2021 · 4 comments
Closed
3 tasks done

xlsx2csv raw output #165

aborruso opened this issue Sep 6, 2021 · 4 comments

Comments

@aborruso
Copy link

aborruso commented Sep 6, 2021

Prerequisites

  • make sure you're are using the latest version by csvtk version
  • read the usage

Describe your issue

  • describe the problem

I have this input file, in which I have a cell whose value is 03/09/2021, that is formatted as 3-set-2021.

image

If I run csvtk xlsx2csv Covid\ Report\ 03\ Settembre.xlsx | head I do not have the raw value (03/09/2021), but the formatted one (3-Sep-2021).

I think it's important to have the way to export raw data: how to do it in csvtk?

Thank you

@shenwei356
Copy link
Owner

I added a new command fmtdate recently.

csvtk xlsx2csv t.xlsx \
    | csvtk fmtdate -f 9 --format "DD/MM/YYYY" --keep-unparsed

@aborruso
Copy link
Author

aborruso commented Sep 6, 2021

As usual, thank you for all.

It would be great to have an option to export the raw values, without specifying format or field number.
In example in csvkit, there a no inferencing option.

Could I add it as feature request?

@shenwei356
Copy link
Owner

It's already discussed, and I recheck the document and codes of excelize package again but did not find any options :(

@aborruso
Copy link
Author

aborruso commented Sep 6, 2021

once again, thank you

@aborruso aborruso closed this as completed Sep 6, 2021
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