# Hide button depending on date and time

**URL:** <https://forum.bubble.io/t/hide-button-depending-on-date-and-time/132356>\
**Category:** Need help\
**Created:** [January 25, 2021, 12:12am UTC](https://forum.bubble.io/t/hide-button-depending-on-date-and-time/132356 "2021-01-25T00:12:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![axel.schallies](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@axel.schallies](https://forum.bubble.io/u/axel.schallies)\
**Post date:** [January 25, 2021, 12:12am UTC](https://forum.bubble.io/t/hide-button-depending-on-date-and-time/132356/1 "2021-01-25T00:12:31Z")

</div>

Hi,

I would like to create a condition where submit button is available until current date/time is before 5PM. After 5PM, I would like NOT to show submit button. But if it for a future date, button is available. I’ve been playing with condition but I can’t achieve my goal.

Does someone have any suggestions?

Thank you

Axel

---

<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:** [January 25, 2021, 12:39am UTC](https://forum.bubble.io/t/hide-button-depending-on-date-and-time/132356/2 "2021-01-25T00:39:00Z")

</div>

For the first part of your question

> where submit button is available until current date/time is before 5PM. After 5PM, I would like NOT to show submit button.

use: `when: current date/time; minutes changed to 0; hours changed to 17; < current date/time; this button is visible = no`

I’m not entirely certain what you mean by the second part of your question…

> But if it for a future date, button is available.

…but if you’re referencing another date other than ‘current date/time’ then you’ll need to add a similar conditional to that as well.

---

<div class="post-metadata">

**Author:** ![axel.schallies](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@axel.schallies](https://forum.bubble.io/u/axel.schallies)\
**Post date:** [January 25, 2021, 12:54pm UTC](https://forum.bubble.io/t/hide-button-depending-on-date-and-time/132356/3 "2021-01-25T12:54:08Z")

</div>

adamholmes,  
thank you for your response! It worked as I wanted… Thank you. I will apply the same principal when it comes to add another condition for a future day.  
I’m happy with your suggestion.  
axel

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 5, 2021, 12:12am UTC](https://forum.bubble.io/t/hide-button-depending-on-date-and-time/132356/4 "2021-04-05T00:12:33Z")

</div>

Closed on April 5, 2021, 12:12am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
