CJuiDatePicker

Views

<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 'name' => 'application_date', 'model' => $model, 'attribute' => 'application_date', 'language' => 'ru', 'options' => array( 'showAnim' => 'fold', ), 'htmlOptions' => array( 'style' => 'height:20px;' ), ));?>

Model

public function rules() { ... array('application_date', 'date', 'format'=>'dd.MM.yyyy'), ... } // Для преобразования (если необходимо) protected function beforeSave() { if(parent::beforeSave()) { $this->application_date = date('Y-m-d', strtotime($this->application_date));//strtotime($this->date_start); return true; } else { return false; } } // Для преобразования (если необходимо) protected function afterFind() { $date = date('d.m.Y', strtotime($this->application_date)); $this->application_date = $date; parent::afterFind(); }