Monday, July 14, 2014

Javascript getMonth January is 0

It's easy to make this mistake, but for Javascript when you call Date.getMonth(), January is 0 and February is 1 and December is 11.

No comments:

Post a Comment