Jump to content

Search the Community

Showing results for tags 'selectors date'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. 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??
×
×
  • Create New...