<html>
<body>
<h1>JavaScript Dates</h1>
<h2>The new Date() Method</h2>
<p>new Date(7 numbers) creates a date object with the specified date and time:</p>
<p id="demo"></p>
<script>
const time = new Date(2018, 11, 24, 10, 33, 30, 0);
document.getElementById("demo").innerHTML = time;
</script>
</body>
</html>