MDN wants to learn about developers like you:


What is the reason of returning an integer between 0 and 11 instead of an integer between 1 and 12? --Souqueta

Well, one possible answer might be that it allows indexing into an array keyed by month, arrays being 0-indexed and all. Honestly, tho, this is an arbitrary choice, and at this point there's not much reason to wonder why it is the way it is. --Waldo 01:22, 19 December 2007 (PST)
This is an arbitrary choice, but this is not a "natural" one. --Souqueta 01:59, 27 June 2008 (PDT)

Document Tags and Contributors

 Contributors to this page: Souqueta, Waldo
 Last updated by: Souqueta,