# How to show/hide a form at specific dates and hours

**URL:** <https://community.gravityforms.com/t/how-to-show-hide-a-form-at-specific-dates-and-hours/9565>\
**Category:** Get Help\
**Tags:** gform\_get\_form\_filter\
**Created:** [May 31, 2021, 12:21pm UTC](https://community.gravityforms.com/t/how-to-show-hide-a-form-at-specific-dates-and-hours/9565 "2021-05-31T12:21:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [June 2, 2021, 5:55pm UTC](https://community.gravityforms.com/t/how-to-show-hide-a-form-at-specific-dates-and-hours/9565/2 "2021-06-02T17:55:52Z")

</div>

Hello. Please have a look at this topic where something similar was accomplished using the `gform_get_form_filter`:

> [@GravityForm Form Restrictions - Schedule \[RESOLVED\]](https://community.gravityforms.com/t/gravityform-form-restrictions-schedule-resolved/4766/7):
>
> I figured it out with additional code. Works like a charm. add\_filter( 'gform\_get\_form\_filter\_4', 'custom\_schedule', 10, 2 ); function custom\_schedule( $form\_string, $form ) { $start = '07:00:00'; $end = '19:00:00'; $now = date("H:i:s"); if($start \< $end) { // if current time is past start time or before end time if($now \<= $start || $now \> $end){ $form\_string = '\<p\>We are closed today, please return tomorrow to make your booking.\</p\>'; } } // …

---

_[View the full topic](https://community.gravityforms.com/t/how-to-show-hide-a-form-at-specific-dates-and-hours/9565)._
