I am trying to calculate the difference between two times using JavaScript. It\'s just basic math but I seem to have some issues with that while using JSON.stringify()
JSON.stringify()
JSON.stringify(new Date())
returns
"2013-10-06T15:32:18.605Z"
Thank God is: Date.prototype.toISOString()
Date.prototype.toISOString()