Returns the month of the UTC date

Description

getUTCMonth()
Returns the month of the UTC date, where 0 represents January and 11 represents December.

Example


var myDate = new Date();
console.log(myDate.getUTCMonth());

The code above generates the following result.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window