php - Yii: how to format datetime in view and search by year -
i have code:
array( 'name'=>'create_time', 'type'=>'datetime', 'filter'=>lookup::items('create_time'), ),
i want:
- date 01.03.2009 16:09:47, not 2009/01/03 04:09:47 (and full month name - specific language)
- filters year
a more yii orientated way be:
'value'=>'yii::app()->dateformatter->format("d.m.y h:i:s",strtotime($data->datetime))',
Comments
Post a Comment