ZaZaKi, a web developer Between Manchester UK & Rotterdam NL. © 2015-2024.

Display Date, JS


<p id="demo"></p>
<script>
var currentdate = new Date();
var datetime = "Date: " + currentdate.getDate() + "/"
+ (currentdate.getMonth()+1) + "/"
+ currentdate.getFullYear() + ". time "
+ currentdate.getHours() + ":"
+ currentdate.getMinutes() + ":"
+ currentdate.getSeconds();
document.getElementById("demo").innerHTML = datetime;
</script>

Categroy:
javascripts , JQuery