echo $form->labelEx($model,'datecolumn name');
The Above line display label for date column.
$this->widget('zii.widgets.jui.CJuiDatePicker',array(
'name'=>'Modelname[datecolumn name]',
'id'=>'Modelname_datecolumn name',
'value'=>Yii::app()->dateFormatter->format("d-M-y",strtotime($model->datecolumn_name)),
'options'=>array(
'showAnim'=>'fold',
),
'htmlOptions'=>array(
'style'=>'height:20px;'
),
)); from the above lines,
name and id attributes are represent html attributes [name,id] of the input.
value option displays saved date during edit / update operation.

Help












