I guys i\'m using a datetimepicker by trentrichardson.com.
I have a form with two input fields : from and to and i want to be able
Please use latest version of bootstrap.min.js
$("#from").datepicker( { format: "dd-mm-yyyy", endDate: '+0d', autoclose: true, }).on('changeDate', function(e) { var oldDate = $('.datepicker-current').val(); $('#to').data('datepicker').setEndDate(oldDate); });