[
'attribute' => 'date',
'contentOptions' => ['class' => 'date'],
],
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'rowOptions' => function ($model, $key, $index, $grid)
{
if($model->date < date('Y-m-d')) {
return ['class' => 'red'];
}
},