コード例 #1
0
 /**
  * Returns formatted date string
  *
  * @return string
  */
 public function get_formatted_frdate()
 {
     return $this->get_frdate()->format(Helper\Date::get_date_format());
 }
コード例 #2
0
ファイル: Vehicle.php プロジェクト: barrykooij/wp-car-manager
 /**
  * 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;
 }