You can use the Yii CFormatter class:
echo Yii::app()->format->date(strtotime($classified->created_date));
You can extend CFormatter into your own class and then format the date, however you want, you just need to include your new component class in the main configuration file.
Another option is to use the DateFormatter parser:
echo Yii::app()->dateFormatter->formatDateTime(CDateTimeParser::parse($classified->create_date, 'yyyy-MM-dd'),'medium',null);
There are many ways to do this ... You can use standard PHP if you want. The only reason for this is that if you decide to change the formats, you may need to change many different types:
echo date("m/d/Y",strtotime($classified->create_date));
source share