var dq = new Date();//定义当前时间
var sDueDate = formatDate(dq);/调用日期转换方法 传入当前时间
//进行日期转换
function formatDate(now) {
debugger
var year = now.getFullYear();
var month = now.getMonth() + ;
var date = now.getDate()-;
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
return year + "-" + month + "-" + date;
}