getDay
種類
メソッド
書式
Dateオブジェクト.getDay()
解説
曜日を返します。
サンプルコード
function sampleCode()
{
dateObj = new Date();
n = dateObj.getDay();
d = "日月火水木金土".charAt(n);
txtField.data = d;
}
sampleCode();
実際のスクリプトを
ダウンロード