showing results for - "daterangepicker set maxdate"
Elisa
14 Apr 2019
1var date2 = new Date();
2date2.setDate(date2.getDate()-1);
3console.log(date2);
4$('#daterange').daterangepicker({
5    showDropdowns: false,
6    format:'MM/DD/YYYY',
7    maxDate:date2,
8    autoclose: true,
9    autoApply:true,
10
11});