protected function optimizeDateFields()
    {
        if (empty($this->field->dateFormat) && $this->field->isDateOrTime()) {
            $this->field->dateFormat = Config::getDateTimeFormat();
        }

        return $this;
    }
protected function optimizeDateFields()
    {
        if (empty($this->field->dateFormat) && $this->field->isDateOrTime()) {
            $this->field->dateFormat = Config::getDateTimeFormat();
        }

        return $this;
    }
protected function optimizeDateFields ( ) { if ( empty ( $ this -> field -> dateFormat ) && $ this -> field -> isDateOrTime ( ) ) { $ this -> field -> dateFormat = Config :: getDateTimeFormat ( ) ; } return $ this ; }
If the field is date, datetime or time, set the output format.

@return $this
If the field is date datetime or time set the output format .