setMonth

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