method Date.setUTCFullYear
Private
Date.setUTCFullYear(
year: number,
month?: number,
date?: number,
): number

Sets the year value in the Date object using Universal Coordinated Time (UTC).

Parameters

year: number

A numeric value equal to the year.

optional
month: number

A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.

optional
date: number

A numeric value equal to the day of the month.

Return Type

number