Using relative Start Dates and End Dates

The "Start Date" and "End Date" fields 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!

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.