getUTCMonth

種類メソッド
書式 Dateオブジェクト.getUTCMonth()
解説
協定世界時の月を返します。実際よりも1少ない値になります。
サンプルコード
function sampleCode()
{
dateObj = new Date();
n = dateObj.getUTCMonth() + 1;
txtField.data = n;
}
sampleCode();
実際のスクリプトをダウンロード