how do I export date as csv in a different format
how do I export date as csv in a different format
This question has an accepted answers - jump to answer
This discussion has been closed.
This question has an accepted answers - jump to answer
Answers
There are quite a lot of posts on this in the forum. It is a lot of work and you need to understand the intricacies of MS Office for many use cases.
This is a fairly comprehensive thread. But you'll find more:
https://datatables.net/forums/discussion/comment/167672/#Comment_167672
I only need CSV, not Excel, so I'm not sure if that's the case.
However, here is how I did solve the issue.
I set up two aliases for the date field (start):
Then I changed the first column to sort by timestamp and added the second timestamp column and set visibility to false (also added timestamp column th to table):
Then I added the "columns: ':not(:first-child)'" to exportOptions so the displayed first column date won't be exported and the timestamp second column will be: