📜  daterangepicker set maxdate - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:38.184000             🧑  作者: Mango

代码示例1
var date2 = new Date();
date2.setDate(date2.getDate()-1);
console.log(date2);
$('#daterange').daterangepicker({
    showDropdowns: false,
    format:'MM/DD/YYYY',
    maxDate:date2,
    autoclose: true,
    autoApply:true,

});