Gets the month of a Date object using Universal Coordinated Time (UTC).
SyntaxdateObj.getUTCMonth()
Return Value
Returns an integer between 0 (January) and 11 (December).
ExamplesThe following example shows how to use the getUTCMonth method.
var date = new Date("2/2/2002");
document.write(date.getUTCMonth());
Remarks
The required dateObj reference is a Date object. To get the month in local time, use the getMonth method.
See also Other articles AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4