tempus-dominus-datetimepicker

tempusdominus clear minDate/maxDate


I am using tempusdominos jquery plugin and i am trying to use the minDate and maxDate feature to link 2 time pickers. I can set these values, but it seems impossible to clear these values. I tried :

 $('#datetimepicker6').datetimepicker({
    minDate: false
  });

and

$('#datetimepicker6').datetimepicker({
        minDate: null
      });

sample


Solution

  • I think you need to do it like this:

    $('#datetimepicker6').datetimepicker('minDate', null);