A RetroSearch Logo

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

Search Query:

Showing content from https://developer.cdn.mozilla.net/ko/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth below:

Date.prototype.getUTCMonth() - JavaScript | MDN

Date.prototype.getUTCMonth()

Baseline Widely available

getUTCMonth() 는 지정된 날짜의 월을 0부터 시작하는 값 (0은 첫 해를 나타냄)으로 표준시에 따라 반환합니다.

Syntax Return value

0부터 11까지의 정수로, 표준시에 따라 주어진 날짜의 달에 해당합니다. 1 월은 0, 2 월은 1, 3 월은 2 등입니다.

Examples Using getUTCMonth()

다음 예제에서는 현재 날짜의 월 부분을 month 변수에 할당합니다.

var today = new Date();
var month = today.getUTCMonth();
명세 브라우저 호환성 See also

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