当前日期前三天
function myformatter1(date){
date.setDate(date.getDate() -3);
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
}
$("#startDate").datebox("setValue", myformatter1(new Date()));