var date1 = new Date('1900-01-01');
console.log(date1);
Yields: "Mon Jan 01 1900 01:00:00 GMT+0100 (W. Europe Standard Time)"
var date2 = new Date(1900,1,1);
console.log(date2);
Yields: "Thu Feb 01 1900 00:00:00 GMT+0100 (W. Europe Standard Time)"
But I don't understand why!