protected function date_format($date) { if ( ! $date) { return NULL; } return ($this->date_format) ? date($this->date_format, $date) : $date * 1000; }