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

Popular posts from this blog

Salesforce concepts in Telugu: Salesforce యొక్క ముఖ్య అవగణాలను తెలుగులో

Learn more about our updated Terms of Service