Answers for "how to disable future dates in datepicker"

CSS
-2

disable past date in inpit date picker

$(function(){
    var dtToday = new Date();
    
    var month = dtToday.getMonth() + 1;
    var day = dtToday.getDate();
    var year = dtToday.getFullYear();
   
    $('#txtDate').attr('min', maxDate);
});
Posted by: Guest on January-27-2021
0

datepicker disable future date odoo

For Odoo
{'datepicker': {'maxDate': None}}
Posted by: Guest on September-21-2021

Code answers related to "how to disable future dates in datepicker"

Browse Popular Code Answers by Language