Filtering exports by date in GravityExport
A date condition limits a GravityExport export to the entries from one period, such as this year or the last seven days. A relative value like -7 days is worked out again every time the export runs, so a saved download link or a scheduled export always covers the latest period.
Add a date condition #
Date conditions go on the Conditional Logic tab of an export filter or of a GravityExport Save feed. An export filter’s conditions apply to its download link and to every Save feed that uses the filter. A Save feed’s own conditions apply only to that feed.
- In your WordPress admin, go to Forms, hover over your form and click Settings.
- Open the GravityExport Filters tab and click Add New, or open the GravityExport Save tab and open a feed.
- On the Conditional Logic tab, click Add Condition.
- Choose Entry Date, then
is after. - In the last box, choose Custom Value and type
first day of january this year. - Click Save Settings.

The export now holds the entries submitted since January 1, and on the next January 1 it starts over with the new year. The last box also offers Today, Yesterday and Tomorrow, and Custom Date, which takes one fixed date from a calendar.
Entry Date is the date the entry was submitted. To filter on a date someone entered in the form, such as a shift or event date, choose that Date field instead. For example, a Date field is after today keeps only the dates still to come.
Relative values #
Type these in Custom Value. With is after, the export holds the entries from that point on. With is before, it holds the entries from before it.
| Value | Starts at |
|---|---|
today | Midnight at the start of today |
-7 days | This time of day, seven days ago |
today -7 days | Midnight, seven days ago |
monday this week | Midnight on Monday of this week |
first day of this month midnight | Midnight on the 1st of this month |
first day of last month midnight | Midnight on the 1st of last month |
first day of january this year | Midnight on January 1 of this year |
first day of january last year | Midnight on January 1 of last year |
Note: first day of this year gives the 1st of the current month, at the current time of day, because first day of works on months. For January 1, write the month: first day of january this year. first day of this month also keeps the current time of day and leaves out entries from earlier on the 1st, so add midnight.
GravityExport reads these values with PHP, so any of PHP’s relative date formats works here.
Filter a date range #
To export one period, add a second condition below the first:
- Add the first condition: Entry Date,
is after, Custom Value2026-07-01. - Click + AND below the box.
- Add the second condition: Entry Date,
is before, Custom Value2026-10-01. - Click Save Settings.

A date without a time means midnight at the start of that day. So is after 2026-07-01 includes July 1, and is before 2026-10-01 stops at the end of September 30. To match one whole day, use is on.
Relative values make a range that moves with the calendar. With is after first day of last month midnight and is before first day of this month midnight, the export always holds last month’s entries.
For a one-off download, an export filter’s Instant Download tab takes a Start Date and an End Date without changing the filter, and Filtering entries included in a GravityExport download shows how to add a date range to the form’s download link. GravityExport Filters covers the rest of an export filter’s settings.