当前时间
//获取当前日期
function show() {
var mydate = new Date();
var str = "" + mydate.getFullYear() + "-";
str += (mydate.getMonth() + 1) + "-";
str += mydate.getDate();
return str;
}
var nowDate1 = show();
var nowDate = new Date(nowDate1);
/*获取当前农历*/
function showCal(_date) {
var D = _date;
var yy = D.getFullYear();
var mm = D.getMonth() + 1;
var dd = D.getDate();
var ww = D.getDay();
var ss = parseInt(D.getTime() / 1000);
if (yy < 100) yy = "19" + yy;
return GetLunarDay(yy, mm, dd);
}