//當前日期
var now = new Date();
//今天是本周的第幾天。周一=0,周日=6
var nowDayOfWeek = (now.getDay() == 0) ? 7 : now.getDay() - 1;
//當前日
var nowDay = now.getDate();
//一周中的星期值;0為星期天,1為星期一、2為星期二,依此類推
getDay()
//當前月值(1月=0,12月=11)
var nowMonth = now.getMonth();
//當前月實際數字
var nowMonReal = now.getMonth() + 1;
//當前年
var nowYear = now.getFullYear();
//獲取當前季度
currQuarter = Math.floor( ( currMonth % 3 == 0 ? ( currMonth / 3 ) : ( currMonth / 3 + 1 ) ) );
//小時值。
getHours()
//分鍾值
getMinutes()
//秒數值。
getSeconds()
//毫秒值。
getMilliseconds()
//返回Date對象與'1970/01/01 00:00:00'之間的毫秒值(北京時間的時區為東8區,起點時間實際為:'1970/01/01 08:00:00') 。
getTime() :