myDate.setUTCFullYear( year, [ month ], [ day ] ) in ECMAScript 262

Set the UTC year number.

Arguments

nametypedescription
year Number The new year number, expressed
month Number [optional] The new month number, expresse
day Number [optional] The new day number, expressed<
Return Type
Number

Description

If the optional parameters are omitted, they are left unchanged in the date object.