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

Proper column types for dates in excel #981

Open
spapas opened this issue Dec 23, 2024 · 0 comments
Open

Proper column types for dates in excel #981

spapas opened this issue Dec 23, 2024 · 0 comments

Comments

@spapas
Copy link
Contributor

spapas commented Dec 23, 2024

Hello friends, when exporting dates in excel, they are exported in text columns. This leads to problems for my users when trying to sort these date columns. For example 23/12/2024 and 22/12/2023 will not be sorted properly !

I'd like to discuss possible solutions to this; I've tried various things but the only two viable things I've found are:

  • Change the value of the column to YYYY-MM-DD so it sorts fine even as text
  • Tell the users to parse the dates using text to columns

Can you recommend anything else or maybe a way that this could be fixed by a patch in django-tables2 ?

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

1 participant