$('#datetimepicker').datetimepicker('setEndDate');$('#datetimepicker').datetimepicker('setEndDate', null);