RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment