This page was translated from English by the community.Learn more and join the MDN Web Docs community.
Date.prototype.getUTCDate()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
getUTCDate() 메서드는 표준시에 따라 지정된 날짜에 해당 월의 요일 (날짜)을 반환합니다.
In this article
Syntax
js
dateObj.getUTCDate();Return value
보편적 인 시간에 따라 지정된 날짜의 달의 날짜를 나타내는 1에서 31 사이의 정수입니다.
Examples
>UsinggetUTCDate()
다음 예제에서는 현재 날짜의 일 부분을 day 변수에 할당합니다.
js
var today = new Date();var day = today.getUTCDate();명세
| Specification |
|---|
| ECMAScript® 2026 Language Specification> # sec-date.prototype.getutcdate> |