How to disable future dates in daterangepicker

Actually setting "0" to maxDate will disable ALL dates not just the future ones. To disable all future days from NOW on, the right way is:

$('.date_input').daterangepicker({
    maxDate: moment()
})

You can use maxDate options

(Date object, moment object or string) The latest date a user may select

$('.date_input').daterangepicker({
    maxDate: new Date()
})

Setting "0" to maxDate will disable all future dates

$('.date_input').daterangepicker({
    maxDate: "0"
})