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:

  1. date 01.03.2009 16:09:47, not 2009/01/03 04:09:47 (and full month name - specific language)
  2. filters year

a more yii orientated way be:

'value'=>'yii::app()->dateformatter->format("d.m.y h:i:s",strtotime($data->datetime))', 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -