$(document).ready(function () {
$("#StartTime").datebox("setValue", formatDate("<%= Model.ExamDetailEditDTO.ApplyTime%>"));
}
<script>
$(document).ready(function(){
$("#dd").datebox({
formatter:formatD
});
})
function formatD(date){
return date.getFullYear()+"-"+date.getMonth()+"-"+date.getDay();
}
</script>
</head>
<body>
<input id="dd" class="easyui-datebox" required="true"></input>
</body>
----------------
formatter 是个函数 他的参数值是 new Date() 类型的
可以用 new Date.getFullYear()