$('#datetimepicker').datetimepicker();
$('#date-end').datetimepicker().on('changeDate', function(ev){ if (ev.date.valueOf() < date-start-display.valueOf()){ .... }});
<input type="text" value="2012-05-15 21:05" id="datetimepicker">
$('#datetimepicker').datetimepicker('setStartDate', '2012-01-01');
$('#datetimepicker').datetimepicker('update');
$('#datetimepicker').datetimepicker('setEndDate', '2012-01-01');
$('#datetimepicker').datetimepicker('setEndDate');$('#datetimepicker').datetimepicker('setEndDate', null);
<script type="text/javascript" src="bootstrap-datetimepicker.de.js" charset="UTF-8"></script>
$('#datetimepicker').datetimepicker('setStartDate');$('#datetimepicker').datetimepicker('setStartDate', null);
$('#datetimepicker').datetimepicker('setDaysOfWeekDisabled');$('#datetimepicker').datetimepicker('setDaysOfWeekDisabled', null);
$('#datetimepicker').datetimepicker('hide');
$('#datetimepicker').datetimepicker('setDaysOfWeekDisabled', [0,6]);
$('#datetimepicker').datetimepicker('remove');
$('#datetimepicker').datetimepicker('show');
<div id="datetimepicker"></div>
<input type="text" value="2012-05-15 21:05" id="datetimepicker" data-date-format="yyyy-mm-dd hh:ii">
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.0-alpha14/js/tempusdominus-bootstrap-4.min.js"></script>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.0-alpha14/css/tempusdominus-bootstrap-4.min.css" />