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