I just kind of finished a snippet to filter results of PdoTools (calendar entries) by things like “country” and “type” etc. which users can choose in a dropdown form (formIt).
What I need now is a way to filter my “month and year”, like “may 2020”. All I have is the full timestamp of the event.
The links you provided are about the display of the timestamp / date. What I need is a comparism of a form input (one month / one year / both) and a database field containing a full timestamp. I think that the format of the timestamp is always the same within the MODX database.
I created a custom snippet for creating the tvFilter. I can publish it later when thenI finished the function in the project. Have to hurry a bit, holydays are calling and I have to get ready
By the way:
&tvFilters=EventDateTV==2017-08
Does not work woth pdoResources. You need to do it like this:
&tvFilters=EventDateTV>>2017-08,EventDateTV<<2017-09