-------------------------------------------------------------
<p id="yo"></p>
<script>
var currentDate = new Date();
var currentday = currentDate.getDay() + 15;//add days
var currentmonth = currentDate.getMonth() + 1;//add month
var currentyear = currentDate.getYear();
document.getElementById("yo").innerHTML = currentday + '/' + currentmonth + '/' + currentyear;
</script>
------------------------------------------------------------
<p id="yo"></p>
<script>
var currentDate = new Date();
var currentday = currentDate.getDay() + 15;//add days
var currentmonth = currentDate.getMonth() + 1;//add month
var currentyear = currentDate.getYear();
document.getElementById("yo").innerHTML = currentday + '/' + currentmonth + '/' + currentyear;
</script>
------------------------------------------------------------
No comments:
Post a Comment