# Check if two dates and time is equal or not

**URL:** <https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197>\
**Category:** Questions\
**Created:** [November 8, 2023, 12:43pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197 "2023-11-08T12:43:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahad.haqqi](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mahad.haqqi](https://forum.bubble.io/u/mahad.haqqi)\
**Post date:** [November 8, 2023, 12:43pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/1 "2023-11-08T12:43:33Z")

</div>

I want to display a popup on the screen using do when condition. but the condition I want to put is if the current/date time is equal to a certain date/time but, I can’t find any way to check both date and time.  
Your help will really be appreciated.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [November 8, 2023, 12:51pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/2 "2023-11-08T12:51:07Z")

</div>

There are a few way to do this…

But this simplest is to extract the Unix from both and compare the two.

Although, for your specific use case, I doubt that you _actually_ want to compare two dates in this way… what are you trying to do?

---

<div class="post-metadata">

**Author:** ![mahad.haqqi](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mahad.haqqi](https://forum.bubble.io/u/mahad.haqqi)\
**Post date:** [November 8, 2023, 12:53pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/3 "2023-11-08T12:53:41Z")

</div>

what I specifically want i to display a review popup when a video conference is over. The end date/time is already stored in data base

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [November 8, 2023, 1:05pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/4 "2023-11-08T13:05:13Z")

</div>

How do you determine when/whether the video conference is over?

just from the stored date? or from it _actually_ ending? (given that it might end earlier or later than the stored date)

---

<div class="post-metadata">

**Author:** ![mahad.haqqi](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mahad.haqqi](https://forum.bubble.io/u/mahad.haqqi)\
**Post date:** [November 8, 2023, 1:06pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/5 "2023-11-08T13:06:18Z")

</div>

just from the end date time in data base

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [November 8, 2023, 1:10pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/6 "2023-11-08T13:10:46Z")

</div>

In that case you need to check if the Current Date/Time is _more than_ the stored date (not equal to it).

Just be aware that Date objects are static, and set at the moment they are defined…

Meaning they don’t update in real time.

If you need to compare the current date/time in real-time you’ll need to update the Current Date/time every second (or however many seconds is required) on the page, and use that value for the comparison.

You can do that with some simple JavaScript, existing Plugins, or just with a vanilla Bubble Do Every x Seconds workflow.

---

<div class="post-metadata">

**Author:** ![mahad.haqqi](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mahad.haqqi](https://forum.bubble.io/u/mahad.haqqi)\
**Post date:** [November 8, 2023, 1:16pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/7 "2023-11-08T13:16:11Z")

</div>

thanks for the insight. but wont these solution add more workflow units if im running them every second.  
and if i use the current date time in do when condition it wont work ?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [November 8, 2023, 1:22pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/8 "2023-11-08T13:22:27Z")

</div>

> [@mahad.haqqi](#):
>
> wont these solution add more workflow units if im running them every second.

No… there are no WU costs involved with things like this.

> and if i use the current date time in do when condition it wont work ?

Yes, it _will_ work… but the date will be the one set at the time the condition was declared (which will most likely be when the page was loaded).

So, it depends if that is what you want or not.

---

<div class="post-metadata">

**Author:** ![mahad.haqqi](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mahad.haqqi](https://forum.bubble.io/u/mahad.haqqi)\
**Post date:** [November 8, 2023, 1:25pm UTC](https://forum.bubble.io/t/check-if-two-dates-and-time-is-equal-or-not/292197/9 "2023-11-08T13:25:04Z")

</div>

Okay, Really appreciate your help @adamhholmes it was a great insight. Thank You
