function labelFromTimestamp($value) { $time = strtotime($value); if ($time != -1 && subStr($value,0,10) != '0000-00-00') return date($this->timestampFormat, strtotime($value)); $arr = $this->splitDT($value, ValueValidator::getInternalTimestampFormat()); return $this->formatDT($arr, $this->timestampFormat); } |