<p class="date">
<span id="theDate"></span>
</p>
setInterval(() => {
document.getElementById("theDate").innerHTML = new Date().toLocaleDateString('en-gb', { weekday:"long", year:"numeric", month:"short", day:"numeric", hour:"numeric", minute:"numeric", second:"numeric"});
},1000);
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.