var d = new Date(2011,1,1); alert(d);
this alert says February, while it should say January
anybody has some explanation for that ?
The month argument is 0 based so you should pass 0 for January.
var d = new Date(2011, 0, 1);