getYear
種類
メソッド
書式
Dateオブジェクト.getYear()
解説
1900年からの年数を返します。
サンプルコード
dObj = new Date();
alert("今年は1900年+"+dObj.getYear()+"年です。");
実際のスクリプトを
ダウンロード