<div class="clock-container">
<div id="clock" class="time-display">00:00:00</div>
<div id="date" class="date-display">Mon, Jan 1</div>
</div>
Back to Snippets
Digital Clock Display JS
Add a functional clock to your dashboard or header. This lightweight script updates the time every second and ensures single-digit minutes and seconds are properly formatted with leading zeros.
378