public function Format($row, $fieldname, $value) { if ($value != "") { return $this->_dbData->getDbFunctions()->fromDate($value, $this->_dateFormat, $this->_hour); } else { return ""; } }
/** * Format a date field from Database values * @param $curValue * @return string */ protected function dateFromSource($curValue, $hour = false) { try { return $this->_dbData->getDbFunctions()->fromDate($curValue, $this->_dateFormat, $hour); } catch (Exception $ex) { return "??/??/????"; } }