I create DateTimePicker like this:
$wnd.$("#" + id).datetimepicker({
minDate: 0,
.............
});
I want to disable minDate option prorammatically. I try next, but it don’t work:
try {
$wnd.$("#" + id).datetimepicker({minDate: new Date(1970, 01 - 1, 01)});
}
catch(e) {
$wnd.$("#" + id).datetimepicker('option', 'minDate', new Date(1970, 01 - 1, 01));
}
P.S.Do not pay attention to the $wnd variable. It’s work fine.
assuming u’re talking about this plugin, wich is based on the jquery-ui-datepicker, just set
minDatetonullaccording to the documentation: