A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Date/getUTCMonth below:

getUTCMonth ยท WebPlatform Docs

getUTCMonth Summary

Gets the month of a Date object using Universal Coordinated Time (UTC).

Syntax
dateObj.getUTCMonth()
Return Value

Returns an integer between 0 (January) and 11 (December).

Examples

The 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 Attributions

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