<html>
<body>
<h2>JavaScript toString()</h2>
<p>The toString() method converts a date to a string:</p>
<p id="demo"></p>
<script>
const d = new Date();
document.getElementById("demo").innerHTML = d.toString();
</script>
</body>
<!-- Mirrored from www.mdssup.ma/js/tryit.asp?filename=tryjs_date_tostring by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 14:46:46 GMT -->
</html>