/** * Returns formatted date string * * @return string */ public function get_formatted_frdate() { return $this->get_frdate()->format(Helper\Date::get_date_format()); }
/** * Returns formatted date string * * @return string */ public function get_formatted_frdate() { $frdate = $this->get_frdate(); if (!empty($frdate)) { try { $frdate = $this->get_frdate()->format(Helper\Date::get_date_format()); } catch (\Exception $e) { $frdate = ''; } } return $frdate; }