##JavaScript日付取得一覧
js
var dt = new Date();
//年
var year = dt.getFullYear();
//月
var month = dt.getMonth()+1;
//日
var date = dt.getDate();
//曜日
dateT = ["日","月","火","水","木","金","土"];
var day = dateT[dt.getDay()];
//時
var hours = dt.getHours();
//分
var minutes = dt.getMinutes();
//秒
var seconds = dt.getSeconds();