Computer Science, asked by lkusum1880, 1 year ago

How to get current date and time using JavaScript?

Answers

Answered by yunuskhanj786
0

<!DOCTYPE html>

<html>

<body>

<h2>JavaScript new Date()</h2>

<p>Using new Date(7 numbers), creates a new date object with the specified date and time:</p>

<p id="demo"></p>

<script>

var d = new Date(2018, 11, 24, 10, 33, 30, 0);

document.getElementById("demo").innerHTML = d;

</script>

</body>

</html>

Answered by sanjana4354
0

pta nhi

by gud by take care

Similar questions