Date.setUTCFullYear

Number setUTCFullYear (Number year)

Parameters

year The year expressed in four digits.

Description

Sets the year of a specified Date object according to UTC, can also set the month and date.

Returns the number of milliseconds between the date set and midnight, January 1, 1970, in UTC.