How to disable past dates from the current date on a datetimepicker? I tried few posts for similar question but was unable to achieve it, Below is what I tried
minDate: dateToday Or minDate: '0' is the key here. Try to set the minDate property.
minDate: dateToday
minDate: '0'
$(function() { $( "#datepicker" ).datepicker({ numberOfMonths: 2, showButtonPanel: true, minDate: dateToday // minDate: '0' would work too }); });
Read more