Link Search Menu Expand Document

Date.SetMonth Method

Explanation Set the month part in local time.
The omitted parameter items are not changed.
Call format d.SetMonth(value [, date ])
Return value None
Arguments integer value Specify the month as a month number with January as 0.
integer date Specify the day numerically.
Exception None
Example of use
var d = new Date();
print(d, "¥n");
d.SetMonth(10);
print(d, "¥n");
Related item