$dataProvider = new ActiveDataProvider([
'query' => \app\models\Zakaz::find(
->where('action <= 0') ->andWhere( 'date >= 2018-04-01 AND date <= 2018-08-01')
/* ->groupBy('date_close')*/,
'pagination' => [
'pageSize' => 20,
],
]);
andWhere( 'date >= 2018-04-01 00:00:00 AND date <= 2018-08-01 23:59:59')
<code lang="php">
andWhere(['>=', 'date', strtotime('2018-04-01 00:00:00')])->andWhere(['<=', 'date', strtotime('2018-08-01 23:59:59')]);
</code>