<html>
<body>
<h2>JavaScript Dates</h2>
<p>toDateString() returns the date of a date object as a readable string:</p>
<p id="demo"></p>
<script>
const d = new Date();
let text = d.toDateString();
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>