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 July 2015.
getUTCDate() 메서드는 표준시에 따라 지정된 날짜에 해당 월의 요일 (날짜)을 반환합니다.
Syntax
js
dateObj.getUTCDate();
Return value
보편적 인 시간에 따라 지정된 날짜의 달의 날짜를 나타내는 1에서 31 사이의 정수입니다.
Examples
Using getUTCDate()
다음 예제에서는 현재 날짜의 일 부분을 day 변수에 할당합니다.
js
var today = new Date();
var day = today.getUTCDate();
명세
Specification |
---|
ECMAScript® 2025 Language Specification # sec-date.prototype.getutcdate |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
getUTCDate |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.