Demo: Maturity date of a fixed deposit
Select one year
<html>
<head>
<title>Demo Project on JavaScript Date function : Maturity </title>
</head>
<script type="text/javascript">
function show_date(){
var dt= new Date();
var msg="Today Date is : " + dt.toDateString();
var my_date= dt.getDate() + (document.getElementById("s1").value * 365);
dt.setDate(my_date);
msg = msg + "<br>Maturity Date : " + dt.toDateString();
document.getElementById("msg").innerHTML= msg;
return true;
}
</script>
</body>
<body>
<select id=s1 name=no_year onChange="show_date()";><option value=1>1 Year </option>
<option value=2>2 Year</option>
<option value=3>3 Year</option>
<option value=4>4 Year</option>
<option value=5>5 Year</option>
</select>
<div id='msg'></div>
</body>
</html>
← Date Reference All Date Projects →
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
plus2net.com