Getmonth Javascript, This question is purely to satisfy my curiosity. The getMonth () method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year). Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity. Always add 1 to the result of getMonth() for a standard 1-12 month representation. See examples, syntax, parameters, return value and browser support. Use getFullYear() for the year, getMonth() for the month, and getDate() for the day of the month. Even though the month says July, if I do a getMonth, it gives me the previous month. getMonth() は Date インスタンスのメソッドで、この日付の「月」を表す 0 を基点とした値(すなわち 0 が年の最初の月を示す)を返します。 The setMonth() method of Date instances changes the month and/or day of the month for this date according to local time. O método getMonth() retorna o mês na data especificada de acordo com o horário local, como um valor zero-based (onde o zero indica o primeiro mês do ano). I am using a datepicker which gives a date in the format Sun Jul 7 00:00:00 EDT 2013. 1ugsaglzk7mkkaziebsu17zg5qlnxngsux6emh96mijawh