开始日期:<input id="beginDateTime" class="mini-datepicker" value="<%=DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd") %>" style=" 100px;" ondrawdate="onDrawDate" />
结束日期:<input id="endDateTime" class="mini-datepicker" value="<%=DateTime.Now.ToString("yyyy-MM-dd") %>" style=" 100px;" ondrawdate="onDrawDate" />
<script type="text/javascript">
function onDrawDate(e) {
var date = e.date;
var d = new Date();
if (date.getTime() < d.getTime()) {
e.allowSelect = true;
}
else {
e.allowSelect = false;
}
}
</script>