title: how to check if today is between two dates in Twig?
body: <p>I'd like to check if today's date is between two dates from the database. Here's my code.</p>
  
  <pre><code>{% if today &lt; room.price_start_date and today &gt; room.price_end_date %}
  &lt;a href="{{'/'|app}}/book/{{room.id}}"&gt;&lt;button type="button" class="btn btn-default btn-xs"&gt;Book this room&lt;/button&gt;&lt;/a&gt;
  {% else %}
  &lt;a href="{{'/'|app}}/contact"&gt;&lt;button type="button" class="btn btn-default btn-xs"&gt;Book this room&lt;/button&gt;&lt;/a&gt;
  {% endif %}
  </code></pre>
  
  <p>The <code>today</code> variable gets its value from this code:</p>
  
  <pre><code>$todayDate = date('Y-m-d');
  $this['today'] = date('Y-m-d', strtotime($todayDate));
  </code></pre>
  
  <p>The <code>price_start_date</code> and <code>price_end_date</code> I get them from database and their columns' type is <code>Date</code></p>
  
  <p>Any idea how to check if <code>today</code> is between <code>room.price_start_date</code> and <code>room.price_end_date</code> in Twig?</p>