You can prompt a download to begin in a user's browser without contacting a server.
Make an array available for download in CSV format.
Dates that are stored in Date objects can be compared or sorted via their Unix timestamp.
The in-built Date() method can generate an accurate UNIX timestamp.
You can make data persistent across pages by accessing the Web Storage API.