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

Format dates as ISO 8601 rather than using date.toString. #41

Closed
mbostock opened this issue Feb 7, 2019 · 0 comments
Closed

Format dates as ISO 8601 rather than using date.toString. #41

mbostock opened this issue Feb 7, 2019 · 0 comments

Comments

@mbostock
Copy link
Member

mbostock commented Feb 7, 2019

We should use date.toJSON rather than date.toString when coercing date objects to strings when formatting DSV. ISO 8601 is a much more suitable representation than date.toString, and if we had automatic type inference #6, we can reliably roundtrip dates as well.

@mbostock mbostock changed the title Format dates as ISO 8601 rather than using *date*.toString. Format dates as ISO 8601 rather than using date.toString. Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant