//年・月・日・曜日を取得する
var year = hiduke.getFullYear();
//var month = hiduke.getMonth()+1;
var month = ("0"+(hiduke.getMonth() + 1)).slice(-2);
var week = hiduke.getDay();
//var day = hiduke.getDate();
var day = ("0"+hiduke.getDate()).slice(-2);
//時・分・秒を取得する
var hour = hiduke.getHours();
var minute = hiduke.getMinutes();
var second = hiduke.getSeconds();