How to Add a Days-Since Counter to Your Website

Add a live count-up counter to any website in one paste. Here is how the embed works, what it counts from, and how to theme it light or dark.

Updated 4 min read By CodingEagles
Free tool Days Since Counter Live count-up in years, months, weeks and days since a date, with an embed code. Open tool

To add a days-since counter to your website, set a start date in the days-since counter, copy the embed code it gives you, and paste that snippet into your page. It drops in a live count-up that ticks every second in each visitor’s browser, showing how long it has been since your date, with nothing to install.

What the embed snippet is

The snippet is a single <iframe> tag. It points at a small, self-contained page on our site that carries your start date, label and theme in the link. When your page loads, the iframe loads that widget, which then counts up on its own. Because the whole thing runs in the visitor’s browser, your site does not need any scripts, build steps or accounts.

Here is the shape of what you paste:

<iframe src="https://date.hivly.net/embed/days-since-counter/?date=2020-01-01&label=Sober&theme=light"
  width="100%" height="210" style="border:0" title="Time since Sober"></iframe>

The date is the day you are counting from, the label is the name shown above the numbers, and theme picks light or dark. You do not write these by hand; the Copy embed code button fills them in from what you type.

Setting it up

  1. Open the days-since counter and pick your start date. Add a time if you want the seconds to line up exactly.
  2. Type a label such as Sober, Together or Launch so the counter reads clearly.
  3. Choose a light or dark theme, press Copy embed code, and paste the snippet where you want the counter to sit.

That is the whole job. The counter starts from your date and keeps ticking while each visitor is on the page.

Count-up, not countdown

A days-since counter is the mirror image of a countdown timer: instead of counting down to a future moment, it counts up from a past one. That makes it a natural fit for streaks, sobriety dates, anniversaries and “days since launch” or “days without incident” boards. If you want to count down to an event instead, the countdown timer and its setup guide cover that.

Changing or removing it

To change the date, label or theme, make a new counter and copy a fresh snippet, then swap it for the old one. To remove the counter, delete the iframe tag from your page. Everything the widget needs travels inside the embed link, so a new copy carries any change you make.

Frequently asked questions

How do I put a days-since counter on my website?
Set the start date, an optional time and a label in the days-since counter, choose a theme, press Copy embed code, and paste the snippet into your page. It adds an iframe that loads a live count-up, so there is nothing to install.
Can I show a dark version of the counter?
Yes. Pick the dark theme before you copy the embed code, and the snippet carries theme=dark in the link. The widget then renders with a dark background to match a dark site.
What does the counter count from?
It counts up from the start date you set, showing the years, months, weeks and days that have passed since then, plus a live hours, minutes and seconds line.

Ready to try it?

Live count-up in years, months, weeks and days since a date, with an embed code. Free, in-browser, and 100% private. Your data never leaves your device.

Open the Days Since Counter