I am having two dates that is stored in db and am selecting it using $.ajax() and what i need is to show the datepicker values between the dates I selected from db.
This worked for me.
$('#date-time-picker').datepicker({ format: 'YYYY-MM-DD', useCurrent: false, showClose: true, minDate: '2018-02-01', maxDate: '2018-03-15', })