getMonth function of JavaScript returns wrong value.
If getMonth function is applied to a date consisting of December as month it returns 0.
I.e.
t
Alert((new Date("2013","12","24")).getMonth());
Pops 0.
So getMonth considers December value as 0.
Coz it returns reminder of 12. We can pass any number to the function it only returns 0-11 values...
Comments
Post a Comment