Date.getUTCMonth

協定世界時の月を返します。実際の月よりも1少ない値になります。

構文

日付オブジェクト.getUTCMonth()

例文

<html>
 <head>
  <title>Date.getUTCMonth</title>
</head>
 <body>
  <script type="text/javascript"><!--
  dateObj = new Date();
  m = dateObj.getUTCMonth() + 1;
  document.write(m+"月");
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

鳥取県の電車路線、駅の一覧

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る