title: search between two dates in yii2
body: <p>A date can be represented in different formats. A table itself looks like so:</p>
  
  <pre><code>   book varchar(250) NOT NULL,  
     date INT NOT NULL
  </code></pre>
  
  <p>Now my problem is that I can not implement search in range between two dates. 
  For example, there are 5 books with different dates, but the start date starts
  at <code>31/12/14</code> and final date is <code>31/02/15</code>. So when a user selects a range between these dates, it must provide all books in that date range. </p>
  
  <p>Is there any way to do it in Yii2? I could not find anything so far</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I'm implementing a custom filter which doesn't belong to <code>GridView</code> and it looks like as a standalone box outside the table.</p>
  
  <p>It looks like so:</p>
  
  <pre><code>&lt;div class="custom-filter"&gt;
  
     Date range:
       &lt;input name="start" /&gt;
       &lt;input name="end" /&gt;
  
     Book name:
       &lt;input name="book" /&gt;
  
  &lt;/div&gt;
  </code></pre>