Filter messages published and less than two days old
This is an open discussion with 2 replies, filed under General.
Search
Ah, you can use "to". I've created some php code to add a {$today-minus-two-days} and now I can filter using:
{$today-minus-two-days} to {$today} {$current-time}
You can also use everything that works with PHPs strtotime()
function. So two days ago to now
should also work.
Create an account or sign in to comment.
I have a data sources that is filtered on "publish date": equal to or earlier than {$today} {$current-time}
How can I extend this with code to make sure the "publish date" is not older than 2 days ago? I need this for a news-sitemap.
Thanks in advance!