JavaScript Reference/Javascript Methods/setMonth
Версия от 21:30, 25 мая 2010; (обсуждение)
"setMonth()" Example
<source lang="javascript">
<html> <body> <button onclick="var myDate = new Date(); myDate.setMonth(5); alert(myDate);">SETMONTH</button> </body> </html>
</source>
"setMonth()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+
</source>
"setMonth()" Syntax, Parameters and Note
<source lang="javascript">
Note: Sets the month.
Syntax:
dateName.setMonth(param1, param2) Parameters:
param1 Required; the month. Value: 0 to 11. param2 Optional; the day of the month. Value: 1 to 31. </source>