# Limit number of entries - per week - parameters for 'week'

**URL:** <https://community.gravityforms.com/t/limit-number-of-entries-per-week-parameters-for-week/12150>\
**Category:** Get Help\
**Tags:** limit-entries, entries-per-week, per-week, entry-limits\
**Created:** [March 10, 2022, 8:02pm UTC](https://community.gravityforms.com/t/limit-number-of-entries-per-week-parameters-for-week/12150 "2022-03-10T20:02:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![norman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/norman/32/3911_2.png) [@norman](https://community.gravityforms.com/u/norman)\
**Post date:** [March 10, 2022, 8:02pm UTC](https://community.gravityforms.com/t/limit-number-of-entries-per-week-parameters-for-week/12150/1 "2022-03-10T20:02:17Z")

</div>

In regards to ‘limit the number of entries’ \> ‘per week’ - is the ‘week’ related to the default wordpress setting e.g. ‘week starts on’ Wednesday, or does this setting default to Monday to Monday or Sunday to Monday etc.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/8/840f29276ebd7dccdbcf01d348be1120b41e0958.png)

Any help is appreciated

---

<div class="post-metadata">

**Author:** ![uamv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/uamv/32/1412_2.png) [@uamv](https://community.gravityforms.com/u/uamv)\
**Post date:** [March 10, 2022, 9:57pm UTC](https://community.gravityforms.com/t/limit-number-of-entries-per-week-parameters-for-week/12150/2 "2022-03-10T21:57:01Z")

</div>

Here are the way in which each of this time frames are defined:

> **GFFormDisplay::get\_limit\_period\_dates()**
>
> ```auto
> switch ( $period ) {
> case 'day':
> return array(
> 'start_date' => current_time( 'Y-m-d' ),
> 'end_date' => current_time( 'Y-m-d 23:59:59' ),
> );
> break;
> 
> case 'week':
> return array(
> 'start_date' => gmdate( 'Y-m-d', strtotime( 'Monday this week' ) ),
> 'end_date' => gmdate( 'Y-m-d 23:59:59', strtotime( 'Sunday this week' ) ),
> );
> break;
> 
> case 'month':
> $month_start = gmdate( 'Y-m-1');
> return array(
> 'start_date' => $month_start,
> 'end_date' => gmdate( 'Y-m-d H:i:s', strtotime( "{$month_start} +1 month -1 second" ) ),
> );
> break;
> 
> case 'year':
> return array(
> 'start_date' => gmdate( 'Y-1-1' ),
> 'end_date' => gmdate( 'Y-12-31 23:59:59' ),
> );
> break;
> }
> 
> ```

It’s showing Monday to Sunday when **Week** is selected.

The plugin [GP Limit Submissions](https://gravitywiz.com/documentation/gravity-forms-limit-submissions/) by Gravity Wiz should give you more granular control over this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [April 9, 2022, 9:57pm UTC](https://community.gravityforms.com/t/limit-number-of-entries-per-week-parameters-for-week/12150/3 "2022-04-09T21:57:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
