lib/components/web/widgets/grid/View.php
public function getFormatter()
    {
        if ($this->_formatter === null) {
            $this->_formatter = Yii::$app->format;
        }

        return $this->_formatter;
    }
public function getFormatter()
    {
        if ($this->_formatter === null) {
            $this->_formatter = Yii::$app->format;
        }

        return $this->_formatter;
    }
Get formatter.

@return CFormatter the formatter instance. Defaults to the 'format' application component.