add min and max date based on selection of startdate in bootstrap datepicker code example Example: var mindate = new date(selected.date.valueof()) var selectedDate = new Date();