change jquery Bootstrap datetimepicker mindate dynamically

I need to change minDate of jQuery’s datetimepicker. Currently the value for the minDate is null on the .change() method.
I am currently using the code below:

jQuery('#field_bvk123').datetimepicker({
onSelect: function(department_date) 
{
$('#field_jv1rv7').datetimepicker('option', minDate, department_date);
}
});

Can anyone assist me here??

Related posts

1 comment

  1. Title says

        $("#datetimepicker6").on("dp.change", function (e) {
          $('#datetimepicker7').data("DateTimePicker").minDate(e.date);
        });
        $("#datetimepicker7").on("dp.change", function (e) {
          $('#datetimepicker6').data("DateTimePicker").maxDate(e.date);
        });
    

    taken from documentations https://eonasdan.github.io/bootstrap-datetimepicker/ under linked pickers.

Comments are closed.