Yii : How to add datepicker in order to filter gridview
<p>Here is my codes in order to show some relation tables data in the controller </p>

<pre><code>    $query = 'SELECT `Transaction`.`id`, SUM(`Transaction`.`amount`) AS all_amount, `App`.`packageId` as packageId, `title` FROM `Transaction` INNER JOIN `App` ON `Transaction`.`fk_app_id` = `App`.`id` GROUP BY `App`.`packageId`';
$model = \Yii::$app-&gt;db-&gt;createCommand($query)-&gt;queryAll();
    $provider = new ArrayDataProvider([
                'allModels' =&gt; $model,
               'sort' =&gt; [
                    'attributes' =&gt; ['id', 'all_amount', 'title'],
                ],
                'pagination' =&gt; [
                    'pageSize' =&gt; 20,
                ],

            ]);
</code></pre>

<p>and it is view code</p>

<pre><code>echo GridView::widget([
    'dataProvider' =&gt; $dataProvider,
    'columns' =&gt; [
        'id',
        'packageId',
        'all_amount',
        'title'


    ],

]);
</code></pre>

<p>I want to add a date picker to view and use it in order to filter GridView<br>
I am new in yii2 please advise me</p>