I'm getting the date string from sessionStorage and tying to convert into Date object of format MM/DD/YYYY so I can setDate to a datepicker.
HTML
<div id="demo"></div>
<label class="control-label" for="coverageStartDate">
   <input 
    type="text" id="coverageStartDate" 
    data-ng-model="coverageStartDate" 
    class="datepick input-small" 
    title="MM/dd/yyyy" 
    pattern="MM/DD/YYYY">
    <span class="datepick add-on" for="coverageStartDate">
      <i class="far fa-calendar-alt"></i>
    </span>
 </label>
JS
var startDate = "01/27/2020";
var coverageStartDate = new Date(startDate);
document.getElementById("demo").innerHTML = coverageStartDate;
$("#coverageStartDate").datepicker("setDate", coverageStartDate);
