Link Search Menu Expand Document

Date.SetFullYear Method

Explanation Set the year part in local time. The omitted parameter items are not changed.
Call format d.SetFullYear (value [, mon [, date ]])
Return value None
Arguments integer value Specify the year numerically.
integer mon 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.SetFullYear (2000);
print (d, "¥ n");
Related item