# How to build a D-H-M-S countdown (days, hours, minutes, seconds) to a target date in the new Glide editor?

**URL:** <https://community.glideapps.com/t/how-to-build-a-d-h-m-s-countdown-days-hours-minutes-seconds-to-a-target-date-in-the-new-glide-editor/84965>\
**Category:** Ask for Help\
**Created:** [October 17, 2025, 11:22pm UTC](https://community.glideapps.com/t/how-to-build-a-d-h-m-s-countdown-days-hours-minutes-seconds-to-a-target-date-in-the-new-glide-editor/84965 "2025-10-17T23:22:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 18, 2025, 12:58am UTC](https://community.glideapps.com/t/how-to-build-a-d-h-m-s-countdown-days-hours-minutes-seconds-to-a-target-date-in-the-new-glide-editor/84965/2 "2025-10-18T00:58:56Z")

</div>

My suggestion would be to pass the end date into a Custom AI component and have it countdown from the current date and time. You should only need the end date to make it work. The reason I suggest that is because any date math in the table will only update approximately every 10 seconds, so it would not lead to a smooth countdown, whereas the custom AI component uses javascript that will countdown more like you would expect. And you wouldn’t need any of your extra computed columns. Just your end date and time.

Here is something I’ve created in the past using the custom AI component to give you an idea.

> [@(Re) Introducing the Stopwatch Component](https://community.glideapps.com/t/re-introducing-the-stopwatch-component/79249/6):
>
> Here’s my take on it using a custom AI component for a stopwatch, which also includes a countdown timer. There should be only three columns in the table (RowID, JSON, and one experimental to extract duration from the json). The template app seems to be holding on to old columns and I can’t get them to remove when I publish. They aren’t in my copy, but they still exist in the template. Ignore the old unused columns because they were for a previous version of this I did a while back. At this p…

---

_[View the full topic](https://community.glideapps.com/t/how-to-build-a-d-h-m-s-countdown-days-hours-minutes-seconds-to-a-target-date-in-the-new-glide-editor/84965)._
