bootstrap 4 datepicker set date code example Example: datepicker select date programmatically bootstrap $("#datepicker").datepicker("setDate", new Date);