To set the day of the month (1-31), we use setDate() method Example
<!DOCTYPE html>
<html>
<body>
<h1>Evon technologies</h1>
<p>The Example of setDate() method to set the date of a month</p>
<p id="z"></p>
<script>
var d = new Date();
d.setDate(23);
document.getElementById("z").innerHTML = d;
</script>
</body>
</html>
0 Comment(s)