[X]

Countdown Clock

time and date 1998 still works

Counts down to a date. Half the web pointed this at midnight, 31 December 1999.

In 2026: Works. The code is untouched apart from the target: the original read new Date("January 1, 2000 00:00:00"), which is long past, so this page rewrites it to five minutes from your page load and the demo really counts. Set TARGET to any date you like. Keep the Z on the end, or the browser reads the date as local time and everyone in a different timezone gets a different answer.

Where it came from: Free script archives. Usage spiked sharply through 1999 for obvious reasons.
MDN

<div id="cd" style="font:bold 16px Verdana;color:#FF0000"></div>

<script language="JavaScript">
var TARGET = new Date("2026-08-30T16:01:06Z");
function countdown() {
  var left = TARGET - new Date();
  if (left <= 0) {
    document.getElementById("cd").innerHTML = "IT'S HERE!!!";
    return;
  }
  var d = Math.floor(left / 86400000);
  var h = Math.floor(left / 3600000) % 24;
  var m = Math.floor(left / 60000) % 60;
  var s = Math.floor(left / 1000) % 60;
  document.getElementById("cd").innerHTML =
    d + " days, " + h + " hours, " + m + " minutes, " + s + " seconds";
  setTimeout(countdown, 1000);
}
countdown();
</script>
sandboxed demo · breaks nothing but itselfrestart

More in time and date

view the whole library ›