JSFiddle - React, Tailwind, and code Playground
HTML
<input id="myinput" type="text" value="01-01-1970" />
JavaScript
//construct datepicker
$("#myinput").datepicker({minDate:new Date(), dateFormat : "dd-mm-yy"});
//later on, a seperate event changes the maxDate property
//but this 'clears' the existing value in the textbox!
$("#myinput").datepicker("option","maxDate", new Date());