When initializing a new Date object in JavaScript using the below call, I found out that the month argument counts starting from zero.
Date
new Date(
It's an old (probably unfortunate, probably dying) tradition in the programming world, see the old standard (POSIX) localtime C function http://linux.die.net/man/3/localtime