<p>I managed to figure this out on my own.  There's a good chance this solution will work for searching for entries between custom date fields using Craft's standard entry system (not the Venti Plugin) as well.</p>

<pre><code> {% set start = craft.request.param('startMonth') %}
 {% set end = craft.request.param('endMonth') %}
 {% set entries = craft.venti.events.startDate('and', '&gt;= ' ~ start|date('Y-m-d'), '&lt;= ' ~ end|date('Y-m-d')) %}

 {% for entry in entries %}
      &lt;p&gt;{{ entry.title }}&lt;/p&gt;
 {% endfor %}
</code></pre>

CC BY-SA 3.0
2016-04-26T20:16:41.580Z
2016-04-26T20:16:41.580Z
triplethreat23
<p>I am using the Venti Events Calendar Plugin. I was wondering how I could go about searching for events between 2 dates.</p>

<p>I can display events between 2 dates below, using the .between parameter. But I have not figured out how to incorporate this into a search.</p>

<pre><code>{% set events = craft.venti.events.between('2016-04-01 00:00:00','2016-05-19 00:00:00') %}
</code></pre>

<search><plugin-ventievents>
Search Between 2 Dates Venti Calendar Plugin
# Search Between 2 Dates Venti Calendar Plugin

(Asked by: username_0 on 2016-04-22)

I am using the Venti Events Calendar Plugin. I was wondering how I could go about searching for events between 2 dates.
I can display events between 2 dates below, using the .between parameter. But I have not figured out how to incorporate this into a search.
{% set events = craft.venti.events.between('2016-04-01 00:00:00','2016-05-19 00:00:00') %}

**Tags:** search, plugin-ventievents

---

## 1 answers

### Answer by username_0 on 2016-04-26. Score: 2 | Accepted answer

I managed to figure this out on my own.  There's a good chance this solution will work for searching for entries between custom date fields using Craft's standard entry system (not the Venti Plugin) as well.
 {% set start = craft.request.param('startMonth') %}
 {% set end = craft.request.param('endMonth') %}
 {% set entries = craft.venti.events.startDate('and', '>= ' ~ start|date('Y-m-d'), '<= ' ~ end|date('Y-m-d')) %}

 {% for entry in entries %}
      {{ entry.title }}
 {% endfor %}


---

