# Trying to create time constraints for an action

**URL:** <https://community.glideapps.com/t/trying-to-create-time-constraints-for-an-action/56386>\
**Category:** Ask for Help\
**Created:** [January 5, 2023, 6:29pm UTC](https://community.glideapps.com/t/trying-to-create-time-constraints-for-an-action/56386 "2023-01-05T18:29:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WFSN\_Utah](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wfsn_utah/32/52436_2.png) [@WFSN\_Utah](https://community.glideapps.com/u/WFSN_Utah)\
**Post date:** [January 5, 2023, 6:29pm UTC](https://community.glideapps.com/t/trying-to-create-time-constraints-for-an-action/56386/1 "2023-01-05T18:29:15Z")

</div>

Hi, Im trying to create time constraints for an action but can’t quite seem to figure it out. For example, if a user clicks a button before a certain time in the day, they will get a notification that says it’s too early, but when they click on that same button on or after the set time, they will get a new screen. Any ideas on how to do this? Thanks!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 5, 2023, 6:37pm UTC](https://community.glideapps.com/t/trying-to-create-time-constraints-for-an-action/56386/2 "2023-01-05T18:37:44Z")

</div>

Create a math column using the formula Hour(Now). Use the special “Now” value as a replacement. This will give you a number representing the hour of the day. You can then make your action conditional on this value.
