Date.setUTCMonth()
Sets the month of a date object, according to universal time
The setUTCMonth() method sets the month for a specified date according to universal time.
Syntax
Parameters
monthValue
An integer between 0 and 11, representing the months January through December.
dayValue
Optional. An integer from 1 to 31, representing the day of the month.
Return value
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
Description
Examples
Using setUTCMonth()
setUTCMonth()
References
Contributors to this page
Uros Durdevic
Last updated