I had following cgridview in Yii application, I want to change date format in value,
\'columns\'=>array(
array(
\'name\'=>\'Dat
I strongly suggest to create or alter the localization file of your target language, and refer it in your application instead of writing custom functions for it without centralizing the format. Please see https://www.yiiframework.com/doc/guide/1.1/en/topics.i18n
// Refer our own locale file(s)
Yii::app()->setLocaleDataPath(Yii::getPathOfAlias('application.shared').'/i18n/data/');
For filtering on the localized date/datetime column in the gridview, please see my answer in a 'duplicate' question: https://stackoverflow.com/a/53759001/3090890