Hi folks,
First of all - I'm not sure this is a explainable result - when so please explain (working with PW for only a few weeks now)
My website has a lot of events with a start- and enddate. I'm looking for a complete selector which will return the events happening between today (2015-11-06) and a week from now (2015-11-13).
I'm searching trough a lot of pages which have the following dates (testcase) ;
Title | Startdate | Enddate
---------------------------------------------
Event A | 2015-09-21 | 2015-09-22
Event B | 2015-09-21 | 2015-11-10
Event C | 2015-09-21 | 2015-11-30
Event D | 2015-11-07 | 2015-11-08
Event E | 2015-11-07 | 2015-11-19
Event F | 2015-11-18 | 2015-11-19
My expectations are events A and F not to show as a result (they have ended before today or starting after a week from now).
Given the dates my selectortest is the following;
template=event,enddate>=2015-11-06,enddate<=2015-11-13|startdate<=2015-11-13
... which results in only Event B and D
Simply switching the startdate and enddate did the trick;
template=event,enddate>=2015-11-06,startdate<=2015-11-13|enddate<=2015-11-13
... which results in events B, C, D and E
My question, why??