# Working with hours on thunkable

**URL:** <https://community.thunkable.com/t/working-with-hours-on-thunkable/952650>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [November 5, 2020, 1:41am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650 "2020-11-05T01:41:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dantec.sbcvr](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dantec.sbcvr](https://community.thunkable.com/u/dantec.sbcvr)\
**Post date:** [November 5, 2020, 1:41am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/1 "2020-11-05T01:41:10Z")

</div>

Hi, guys…

Does anyone know if I can make a button hide within a specific time and display it at another time? Does anyone have any videos or tutorials that will help guide me on how to do this?

Thanks…

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [November 5, 2020, 4:39am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/2 "2020-11-05T04:39:34Z")

</div>

can you explain more what are you trying to say

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 5, 2020, 5:22am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/3 "2020-11-05T05:22:37Z")

</div>

Hi @dantec.sbcvr,  
I’m not sure what you are trying to convey.  
Could you explain it a bit further?

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [November 5, 2020, 5:32am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/4 "2020-11-05T05:32:01Z")

</div>

yes!!

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 5, 2020, 5:34am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/5 "2020-11-05T05:34:32Z")

</div>

Oh, I think that he wants to hide a button some time after the screen is opened/button clicked, and show it again later. Is that correct @dantec.sbcvr?

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [November 5, 2020, 2:33pm UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/6 "2020-11-05T14:33:31Z")

</div>

@dantec.sbcvr if you want to make it like @codeswept said then  
add a timer component and enter the time interval as you like  
if you want to make it happen once the loop - false or loop - true  
when screen opens  
timer enabled to true

when timer fires  
if button visible = true  
button visible to false  
else button visible to true

---

<div class="post-metadata">

**Author:** ![dantec.sbcvr](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dantec.sbcvr](https://community.thunkable.com/u/dantec.sbcvr)\
**Post date:** [November 6, 2020, 12:41am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/7 "2020-11-06T00:41:36Z")

</div>

hi @codeswept

In fact I want the button to be active from Monday to Saturday until 2 pm. after that time, the button allowed access only on the saturday.

Thanks.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 6, 2020, 5:22am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/8 "2020-11-06T05:22:45Z")

</div>

Play around with the time/date blocks in the Device drawer and use an If block within the “when button click” block to allow/disallow something to happen.

 ![Screen Shot 2020-11-05 at 9.21.46 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/916097e4e87b15a33fb6fa4c8cbc4b1c08c4a2f9.png)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 6, 2020, 6:27am UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/9 "2020-11-06T06:27:14Z")

</div>

Hi!  
It’s best to do this when your clock’s minute hand is exactly at 12. That makes it much easier.  
Follow and read this conversation(link beside) to [get current date and time](http://community.thunkable.com/t/get-current-date-time/32803/6).Initialize a couple of variables to store the information. Then you can use (of course in blocks)  
if var date = “Saturday” and var hour ≥ 14  
from button1 set visible to false  
else  
from button set visible to true.  
Hope this helps!  
Happy Thunking!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:21pm UTC](https://community.thunkable.com/t/working-with-hours-on-thunkable/952650/10 "2024-11-08T12:21:45Z")

</div>


