I wrote the code as below:
var a = Date.parse('2012-01-01'); var b = Date.parse('2012-01-01'); var c = Date.parse('1/1/2012'); alert( a + ' - ' + b + ' - ' + c );
And the result:
1325376000000 - 1325376000000 - 1325376000000
The reason I wrote the same code for a and b, http://www.w3schools.com/jsref/jsref_parse.asp says Date.parse returns the value of a millisecond, regardless of whether time passes between these lines.
Im using Firefox 9.0.1 and the result is correct.
source share