Afternoon,
SO…
I save datetime in my Mysql as an Int (created_at) and would like to convert it to date format in my view.
<div class="quote-index">
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'description',
'total_cost',
'created_at',
['class' => 'yii\grid\ActionColumn', 'template' => '{view}'],
],
]); ?>
</div>
is there a build in function for this?
Cheers