4

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??

Jay Kareliya
  • 760
  • 7
  • 21

1 Answers1

9

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.

Adam Touhou
  • 582
  • 5
  • 11