★ wanayoo — archive 1999 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCDateNouvelle recherche | Portail wanayoo
mozilla
Your Search Results

    Date.prototype.setUTCDate()

    This article is in need of an editorial review.

    This translation is incomplete. Please help translate this article from English.

    概要

    協定世界時に基づき、指定された日時の 日にち を設定します。

    構文

    dateObj.setUTCDate(dayValue)

    引数

    dayValue
    「日にち」を表す1から31の整数値

    説明

    指定するパラメータが期待値の範囲外の場合、 setUTCDate() はDateオブジェクトの日時情報を更新しようとします。例えば、dayValueに40を指定して、Dateオブジェクトに設定した「月」は6月の場合、日にちは10に変更され、「月」は7月に繰り上げられます。

    例

    例: setUTCDate()を使う

    var theBigDay = new Date();
    theBigDay.setUTCDate(20);
    

    仕様

    仕様 ステータス コメント
    ECMAScript 1st Edition. Standard Initial definition. Implemented in JavaScript 1.3.
    ECMAScript 5.1 (ECMA-262)
    The definition of 'Date.prototype.setUTCDate' in that specification.
    Standard  
    ECMAScript 6 (ECMA-262)
    The definition of 'Date.prototype.setUTCDate' in that specification.
    勧告候補  

    ブラウザ実装状況

    機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
    基本サポート (有) (有) (有) (有) (有)
    機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    基本サポート (有) (有) (有) (有) (有) (有)

    関連情報

    ドキュメントのタグと貢献者

    Contributors to this page: shide55
    最終更新者: shide55,
    サイドバーを隠す