title: Yii2:using kartik date range picker for filtering in gridview
body: <p>I am trying to use the Kartik Date Range picker for filter in gridview.</p>
  
  <p>I have a column date_time field as <code>discharge_date</code>, the widget is showing fine in the gridview but the filtering is not working at all.</p>
  
  <p>This is my code in the Gridview:</p>
  
  <pre><code>[
                  'attribute'=&gt;'discharge_date',
                  'value'=&gt;'discharge_date',                
                  'filterType' =&gt; GridView::FILTER_DATE_RANGE,
                  'filterWidgetOptions' =&gt;([
                  'model'=&gt;$model,
                  'attribute'=&gt;'discharge_date',
                  'presetDropdown'=&gt;TRUE,                
                  'convertFormat'=&gt;true,                
                  'pluginOptions'=&gt;[                                          
                      'format'=&gt;'Y-m-d',
                      'opens'=&gt;'left'
                  ]
              ])
  
              ],
  </code></pre>
  
  <p>Where I am going wrong?</p>
  
  <p><img src="https://i.stack.imgur.com/heTeP.jpg" alt="Discharge Date"></p>