Answers.Body: <p>Thanks to Brandon Kelly's help I now have Events being filtered by my custom date field called <code>eventDate</code> by doing the following:</p>
  
  <pre><code>{% set day = date(craft.request.getSegment(2)) %}
  {% set nextDay = day|date_modify('+1 day') %}
  {% set events = craft.entries.eventDate('and, &gt;= '~day|date('Y-m-d')~', &lt;'~nextDay|date('Y-m-d')) %}
  </code></pre>
  
  <p>I have some links in my side bar that append the appropriate Date to the URL:</p>
  
  <pre><code>&lt;a href="{{ url('events/'~now|date('Y-m-d')) }}"&gt;Today&lt;/a&gt;
  &lt;a href="{{ url('events/'~nextDay|date('Y-m-d')) }}"&gt;Tomorrow&lt;/a&gt;
  </code></pre>
  
  <p>And finally I just loop that through like so:</p>
  
  <pre><code>{% for block in events %}{% endfor %}
  </code></pre>
  
  <p>I hope someone else can find this as handy as I did through Brandon's help!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-15T14:01:05.770Z
Answers.Text: This thread will come in handy as we need to do something similar on the site we just started building. Thanks for posting it!
Answers.UserDisplayName: Ryan Masuga
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-13T23:23:54.993Z
Answers.Text: This awesome and a great example of Twig's awesomeness.
Answers.UserDisplayName: James Muspratt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-13T21:59:19.070Z
Answers.LastActivityDate: 2014-06-13T21:59:19.070Z
Answers.UserDisplayName: Mark Busnelli Jr
Body: <p>I am trying to setup an events section similar to that of Yelp's Events.  They have a listing of all the upcoming events and have filters on the side for "Today, Tomorrow" etc...</p>
  
  <p>I received help from Brandon Kelly and will be posting my answer below.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-13T22:12:43.113Z
Comments.Text: This seems like a valuable Q&A, Mark. I think the question could be better if it was more descriptive and self-contained, leaving room for other answers if any are so bold as to compete with Mr. Kelly. I enjoy pretending I'm two different people asking and answering, though I can follow up on that with a therapist.
Comments.UserDisplayName: Matt Stein
Tags: <entries><date><datetime>
Title: How Do I show advanced Date filters for Events?
ThreadText: # How Do I show advanced Date filters for Events?
  
  (Asked by: username_0 on 2014-06-13)
  
  I am trying to setup an events section similar to that of Yelp's Events. They have a listing of all the upcoming events and have filters on the side for "Today, Tomorrow" etc...
  
  I received help from Brandon Kelly and will be posting my answer below.
  
  **Tags:** entries, date, datetime
  
  > **Comments:**
  > **username_1**: This seems like a valuable Q&A, Mark. I think the question could be better if it was more descriptive and self-contained, leaving room for other answers if any are so bold as to compete with Mr. Kelly. I enjoy pretending I'm two different people asking and answering, though I can follow up on that with a therapist.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2014-06-13. Score: 6
  
  Thanks to Brandon Kelly's help I now have Events being filtered by my custom date field called `eventDate` by doing the following:
  
  ```
  {% set day = date(craft.request.getSegment(2)) %}
  {% set nextDay = day|date_modify('+1 day') %}
  {% set events = craft.entries.eventDate('and, >= '~day|date('Y-m-d')~', <'~nextDay|date('Y-m-d')) %}
  
  ```
  
  I have some links in my side bar that append the appropriate Date to the URL:
  
  ```
  <a href="{{ url('events/'~now|date('Y-m-d')) }}">Today</a>
  <a href="{{ url('events/'~nextDay|date('Y-m-d')) }}">Tomorrow</a>
  
  ```
  
  And finally I just loop that through like so:
  
  ```
  {% for block in events %}{% endfor %}
  
  ```
  
  I hope someone else can find this as handy as I did through Brandon's help!
  
  > **Comments:**
  > **username_3**: This awesome and a great example of Twig's awesomeness.  
  > **username_2**: This thread will come in handy as we need to do something similar on the site we just started building. Thanks for posting it!  
  
  ---
  
  