Date filter on a DS using $today?
This is an open discussion with 3 replies, filed under Troubleshooting.
Search
This is possibly related to this topic: Date field parameter is returning a different date format in S2.0
Sounds like the issue I just ran into:
Regarding the date range shortcuts, '2007' returns all entries from 2007, and '2007-01' returns all entries from January 2007, but '2007-01-01' returns no entries (though entries with that date exist). Should '2007-01-01' not also serve as a shortcut for '2007-01-01 to 2007-01-01'? I'm running 2.0.1 release.
Have you tried the range "2009-02-15 to 2009-02-15"?
Brian, yes this resolves the problem if I use {$today} to {$today}
. How backward. Thanks!
Create an account or sign in to comment.
I've hit a wall with something that should be very simple indeed. I have a section with a date field named "Date". I have added 365 entries to this entry using a script (one for each day of the year). I want to filter the section on this field, passing in
$today
to fetch today's entry, but I can't get it working.I have tried:
{$today}
, no results2009-02-15
, no results2009-02
correctly returns February 20092009
correctly returns 2009 entriesAm I doing something wrong, or should this be considered a bug with DS filtering/the Date field?
I'm on v2.0.1.