The
minDate setting needs to be in the same format as that specified for the datepicker, i.e. in its
dateFormat option, which defaults to
'mm/dd/yy'. If you have already initialised the datepicker, then you need to use the
'option' method to change a setting:
- $('#SCDATE').datepicker(); // Initialise
- ...
- $('#SCDATE').datepicker('option', {minDate: mmddyy}); // Update