How to show only entries from the current day, week, month, or year
An Advanced Filter condition compares a date with a relative date, such as yesterday or first day of next month, which moves with the calendar. You can filter on Entry Date, the date an entry was submitted, or on a Date field of your form.
Advanced Filtering is built into GravityView Pro. To turn it on or off, go to Plugins and click Features in the GravityView Pro row.
Note: To list the entries submitted today, this week, this month, or this year, use the View’s Filter by Start Date and Filter by End Date settings on the Filter & Sort tab, with no condition to set up. Type these values:
- Today:
todayandtoday - This week, Monday to Sunday:
monday this weekandsunday this week - This month:
first day of this month 00:00:00andlast day of this month 23:59:59 - This year:
first day of january this year 00:00:00andlast day of december this year 23:59:59
Using relative Start Dates and End Dates shows how.
Show entries from today #
- Edit the View and click the Filter & Sort tab in the Settings box.
- Under Advanced Filter, click Add Condition.
- Choose Entry Date or your Date field, then
is on, thenTodayin the value list. - Click Update.
To show yesterday’s entries, choose Yesterday instead of Today.
Show entries from a week, a month, or a year #
This works on a Date field of your form, such as a class date or a due date. For the date an entry was submitted, use the Filter by Start Date and Filter by End Date settings in the note above.
A range takes two conditions joined by AND: the date is after the day before the range starts, and is before the day after it ends.
- Edit the View and click the Filter & Sort tab in the Settings box.
- Under Advanced Filter, click Add Condition.
- Choose your Date field, then
is after. In the value list, choose Custom Value and type the start value from the table below, such aslast day of last month. - Click + Condition. Choose the same Date field and
is before, then type the end value as a Custom Value, such asfirst day of next month. A value that matches a choice in the list shows as that choice, hereNext month (start). - Click AND at the top of the group.
- Click Update.

| Entries from | is after | is before |
|---|---|---|
| This week (Monday to Sunday) | Sunday last week | monday next week |
| This month | last day of last month | first day of next month |
| Last month | last day of -2 month | first day of this month |
| This month and next month | last day of last month | first day of +2 month |
| This year | last day of december last year | first day of january next year |
The same values also match dates that haven’t come yet, such as classes, deadlines, or delivery dates this week or this month.
The values are PHP relative date formats, worked out again each time the View loads. PHP’s list of relative formats has the words you can use.
GravityKit Academy has a course on Advanced Filtering.