bootstrap datepicker set end date dynamically code example Example: var mindate = new date(selected.date.valueof()) var selectedDate = new Date();