</> ConvertAtlas Developer Tools
Bootstrap 5 · Beginner

Live Clock Card

A live ticking clock with date, updated every second.

Requires Bootstrap 5. Add the CDN tags below to your page (styles in <head>, scripts before </body>). The downloaded file already includes them.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<div class="card border-0 shadow-sm text-center" style="max-width:280px"><div class="card-body">
  <div class="display-5 fw-bold" id="clkTime">--:--:--</div>
  <div class="text-secondary" id="clkDate">—</div>
</div></div>
function upd(){var d=new Date();document.getElementById('clkTime').textContent=d.toLocaleTimeString();document.getElementById('clkDate').textContent=d.toLocaleDateString(undefined,{weekday:'long',month:'long',day:'numeric'})}
upd();setInterval(upd,1000);
Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.