consider the following simple javascript code example below. I would expect same values for d and x, e.g. d-x = 0, but that does not seem to be the case? Am I not allowed to use the date string format used for var x, or is there another reason? (I could not directly find such restriction in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse, but also not an example with the string format yyyy-mm-dd)
var d = Date.parse("March 21, 2012");
alert(d); //val 1332284400000
var x = Date.parse("2012-03-21");
alert(x); //val 1332288000000
alert(d-x); //val -3600000