I need some help with Blockchain API timestamps. The timestamps from the JSON responses are not user readable. I need to parse this to a readable format to run some logical function based on time.
The timestamp looks something like this:
I tried to do something like this:
var test = new Date(1331300839);
This is not working. How can I convert the timestamp to a readable format?