Consider this...
var date = new Date(1901, 1, 1);
Result is February 1st, 1901. But why is it February and not January?
Consider this...
var date = new Date(1901, 1, 1);
Result is February 1st, 1901. But why is it February and not January?
Thats' because it is an old standard from the beginning of computing. You always start counting at 0. But still, I also find this, silly!
Because javaScript engine has written like this(zero based):
0 = January
1 = February
2 = March
3 = April
And so on...
javaScript is written this way. No wonder. That's it.