我需要在指定日期前5天停用,我有以下代码:
var date = new Date('<?php echo $valid_date;?>');
date.setDate(date.getDate()-5);
$('.datepicker').datepicker({
endDate:"0",
assumeNearbyYear: true,
format: "dd/mm/yyyy",
language: "es",
daysOfWeekHighlighted: "1,2,3,4,5",
todayHighlight: true,
autoclose: true,
clearBtn:false,
todayBtn:false,
todayHighlight:true,
minDate: date,
});
但它不起作用。