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

exporting data when date field is timestamp rather than date object #17

Closed
mg1075 opened this issue Aug 25, 2015 · 2 comments
Closed

exporting data when date field is timestamp rather than date object #17

mg1075 opened this issue Aug 25, 2015 · 2 comments

Comments

@mg1075
Copy link

mg1075 commented Aug 25, 2015

For the XLSX and CSV download options, if using the categoryField has a date and the date is sent to the dataprovider as a timestamp rather than a date object, is there a way - out of the box - to make the download treat the date field as a date instead of an integer?

@maertz
Copy link
Collaborator

maertz commented Aug 25, 2015

We've just released a new version v1.3.1 which solves the issue. Date-Field-Timestamps get converted as dates. XLSX and JSON export by default date objects if no dateFormat has been defined.
Define dateFormat: 'dateObject' to export the RAW dates, if you prefer a dedicated date format for CSV but a real "date field" for XLSX you need to use the menuReviver to pass the dedicated dateFormat.

@maertz maertz closed this as completed Aug 25, 2015
@mg1075
Copy link
Author

mg1075 commented Aug 25, 2015

Thanks!

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