1var countDownDate = new Date("Jul 25, 2021 16:37:52").getTime();
2
3var myfunc = setInterval(function() {
4 var now = new Date().getTime();
5 var timeleft = countDownDate - now;
6
7 var days = Math.floor(timeleft / (1000 * 60 * 60 * 24));
8 var hours = Math.floor((timeleft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
9 var minutes = Math.floor((timeleft % (1000 * 60 * 60)) / (1000 * 60));
10 var seconds = Math.floor((timeleft % (1000 * 60)) / 1000);
11
12 }, 1000)
1<body>
2 <div>Registration closes in <span id="time">05:00</span> minutes!</div>
3</body>