I have the following design and I want to add six months to the start date on On-blur event but my code returns the finish date in millisecond format.
function calDate() {
var date1 = new Date(document.getElementById('txtstdate').value);
document.getElementById("txtenddate").value = date1.setDate(date1.getDate()+30);