See if this peace of Code Helps You and Good Luck With your Application
<!DOCTYPE html>
<html>
<head>
<script>
function myFunction()
{
var x=document.getElementById("fname");
var y=document.getElementById("fname2");
var d = new Date(x.value);
y.value=((d.getMonth()+1)+"-"+d.getDate() + "-" +(d.getFullYear()+10));
}
</script>
</head>
<body>
<input type="date" id="fname" onchange="myFunction()">
<input type="text" id="fname2" disabled>
</body>
</html>