Example #1
0
 public function Format($row, $fieldname, $value)
 {
     if ($value != "") {
         return $this->_dbData->getDbFunctions()->fromDate($value, $this->_dateFormat, $this->_hour);
     } else {
         return "";
     }
 }
Example #2
0
 /**
  * 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 "??/??/????";
     }
 }