Using relative Start Dates and End Dates

The "Start Date" and "End Date" View settings filter entries based on the date the entries were created. The fields allow you to enter relative times. The values for relative times need to be compatible with the strtotime() PHP function. Here's a list of the Relative Formats supported.

Here are some examples:

  • now - Return the current time
  • today - Return the current day
  • +1 day - one day from now
  • -1 day - one day ago
  • -4 day - four days ago
  • -1 week - one week ago
  • -2 months - two months ago

This allows you to show entries that are within a certain window of time, relative to when the user visits the View!

Where to find the Start Date and End Date settings

When editing a View, scroll down to find the Settings box. Click on the tab labeled "Filter & Sort". There you will see two settings: "Filter by Start Date" and "Filter by End Date". Those settings allow you to use the relative dates as described in this article.

Screenshot of the Start Date and End Date settings

Filtering by date fields, rather than the date the entry was created

If you want to filter entries based on the value of a Date field, check out How to show only entries from the current day, week, month, or year

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us