how to use dateTimeFormat

Sorry about my english :D

It worked for getDateFormat & dateTimeFormat


Yii::app()->dateFormatter->format(Yii::app()->locale->getDateFormat(),$data->updateTime);

Yii::app()->dateFormatter->format(Yii::app()->locale->getTimeFormat(),$data->updateTime);

And my question is how to use this: Yii::app()->locale->dateTimeFormat

Thanks.

dateTimeFormat from CLocale is read-only. Doc

You can use:




Yii::app()->dateFormatter->dateTimeFormat = Yii::app()->locale->dateTimeFormat;