setUTCFullYear

fun setUTCFullYear(year: Int, month: Int = definedExternally, date: Int = definedExternally): Int(source)

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

Parameters

year

A numeric value equal to the year.

month

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.

date

A numeric value equal to the day of the month.

MDN Reference