Set UTC Month Method

The Set UTC Month method sets the UTC month of a date object to a specific month.

Format

dateVar.setUTCMonth(month[, date])

The following table describes the arguments for the Set UTC Month method.

Argument Description

month

The UTC month to set in dateVar as an integer from 0 through 11. As an option, you can set this argument to the value that the date argument contains. For more information, see Values for Dates and Times.

date

The UTC date of the month argument to set in dateVar as an integer from 1 through 31.