var d = new Date();//現在時刻 console.log(d.getFullYear()); console.log(d.getMonth()); console.log(d.getTime());//1970/1/1からの経過ミリ秒
var d = new Date(2015, 0, 11, 10, 20, 30 );//jsは月は0から始まる console.log(d);