Hi!
I have DATE field in my tables.
I need to display ‘dd-mm-yy’.
How can I do this with Yii?
This should be do in model or view and HOW?
Hi!
I have DATE field in my tables.
I need to display ‘dd-mm-yy’.
How can I do this with Yii?
This should be do in model or view and HOW?
In the view, because it belongs to presentation.
(preferably) with CDateFormatter (guide)
with plain php:
<?php echo date('d-m-y', strtotime($model->date)); ?>