メソッド Type method
Dateオブジェクト.setUTCMonth(月) Format Date object. SetUTCMonth (Monday)
Commentary
協定世界時の月を設定します。 Set the World on Monday Agreement. 実際よりも1少ないを指定します。 Than the actual value a little. システムなどの時計には影響を与えません。 The clock does not affect systems.
サンプルコード Sample code
dateObj = new Date(); dateObj = new Date ();
dateObj.setUTCMonth(9); dateObj.setUTCMonth (9);
n = dateObj.getUTCMonth() + 1; n = dateObj.getUTCMonth () + 1;
outputs[0] = n; outputs [0] = n;