Search

I have a datasource with dated entries. The dates can be in the future. I want to filter the datasource so I only get entries with dates within the next 3 months. Anyone know what the best approach to get this done is?

The date field(s) use the strtotime function to parse the DS parameter. So you can use everything that strtotime understands. Though some special characters that are used in strtotime are used in the DS parameters as well, especially the + sign. You have to encode those characters. So in your case you could set up the filter like

today to %2B 3 months

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details