setUTCMonth

fun setUTCMonth(month: Int, date: Int = definedExternally): Int(source)

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

Parameters

month

A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.

date

A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.

MDN Reference