Date对象:
var today = new Date();
//年份:
var year = today.getFullYear();
//月份
var month = today.getMonth() + 1;
//日期
var day = today.getDate();
//时
var hour = today.getHours();
//分
var minute = today.getMinutes();
//秒
var seconds = today.getSeconds();