getUTCMonth Method (JavaScript)
Returns the month value in a Date object using Universal Coordinated Time (UTC).
dateObj.getUTCMonth()
The required dateObj reference is a Date object.
To get the month in local time, use the getMonth method.
The getUTCMonth method returns an integer between 0 and 11 indicating the month value in the Date object. The integer returned is not the traditional number used to indicate the month. It is one less. If "Jan 5, 1996 08:47:00.0" is stored in a Date object, getUTCMonth returns 0.
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.
Applies To: Date Object (JavaScript)