public function getDateStarted()
{
return date('m-d-Y', CDateTimeParser::parse($this->DateStart, Yii::app()->locale->dateFormat));
}
public function setDateStarted($value)
{
$this->DateStart = Yii::app()->dateFormatter->formatDateTime(CDateTimeParser::parse($value, 'yyyy-MM-dd'),'medium',null);
}
But when calling a date through AR in CListView it always returns 12-31-1969.
I am using MySQL with a date attribute. Anyone have any ideas?