How to disable future dates in daterangepicker
<p>I am using <a href="http://www.daterangepicker.com/" rel="noreferrer">this</a> plugin for selecting date range,
The configuration is my js is as follows:</p>

<pre><code>// date range picker
$('.date_input').daterangepicker({
    autoUpdateInput: false,
    locale: {
        cancelLabel: 'Clear',
        format: 'DD-MM-YY'
    }
});
</code></pre>

<p>I need to disable the future dates, i tried using maxDate, but it did not work.
Please help me to resolve this issue.Help would be much appreciated
Thanks!!</p>