I need to filter programs in a view by date. The date is a Custom Field that is of the Date & Time type, as I am collecting start and end date and times.
In the view I want the end user to select the date and see all programs on the selected day. I get no results when using 'equal to' but get results when I use 'greater than or equal'.
When I change the Custom Field to only Date, the filtering work fine. It seems to me that it is related to the formatting of the time being different between the date picker and the Date & Time format.
Link to a page where the issue can be seen: hidden link
I expected to see: All programs on that date
Instead, I got: Sorry, no programs found
Hello,
Thanks for the details, I can log into your website, will update here if there is any found.
That is expected result, the custom date field created with Types plugin stores value in timestamp format, for example:
2019-07-18
2019-07-18 12:46
They are different timestamp values, so your filters won't work, and returns result: no programs found
You can try one of below options:
1) As you mentioned above, use Date & Time format in your custom date field.
2) Setup two date-pickers, pass two URL parameters to view, and filter the result with "between" range filter,
https://toolset.com/documentation/user-guides/date-filters/#filtering-between-dates