--- title: Date.prototype.getUTCDate() slug: Web/JavaScript/Reference/Global_Objects/Date/getUTCDate tags: - Date - JavaScript - Method - Prototype - Reference translation_of: Web/JavaScript/Reference/Global_Objects/Date/getUTCDate --- <div>{{JSRef}}</div> <p><strong><code>getUTCDate()</code></strong> メソッドは、協定世界時に基づき、指定された日時の月内の日 (1~31) を返します。</p> <div>{{EmbedInteractiveExample("pages/js/date-getutcdate.html")}}</div> <div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div> <h2 id="Syntax">構文</h2> <pre class="brush: js"><var>dateObj</var>.getUTCDate()</pre> <h3 id="Return_value">返値</h3> <p>協定世界時に基づき、与えられた日付の「日」を表す 1 から 31 までの整数値です。</p> <h2 id="Examples">例</h2> <h3 id="Using_getUTCDate">getUTCDate() の使用</h3> <p>次の例は、現在日時の「日」の部分を変数 <code>dayOfMonth</code> に代入します。</p> <pre class="brush: js">var today = new Date(); var dayOfMonth = today.getUTCDate(); </pre> <h2 id="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('ESDraft', '#sec-date.prototype.getutcdate', 'Date.prototype.getUTCDate')}}</td> </tr> </tbody> </table> <h2 id="Browser_compatibility">ブラウザーの互換性</h2> <p>{{Compat("javascript.builtins.Date.getUTCDate")}}</p> <h2 id="See_also">関連情報</h2> <ul> <li>{{jsxref("Date.prototype.getUTCDate()")}}</li> <li>{{jsxref("Date.prototype.getDay()")}}</li> <li>{{jsxref("Date.prototype.setUTCDate()")}}</li> </ul>