/**
  * (non-PHPdoc)
  * @see \FrontCore\Adapters\AbstractEntityAdapter::getDataForSubmit()
  */
 public function getDataForSubmit()
 {
     $arr_data = parent::getDataForSubmit();
     //manipulate date to valid format
     if ($arr_data["date_expiry"] != "") {
         $objDate = \DateTime::createFromFormat($this->format_date, $arr_data["date_expiry"]);
         $arr_data["date_expiry"] = $objDate->format('c');
     }
     //end if
     return $arr_data;
 }
 /**
  * (non-PHPdoc)
  * @see \FrontCore\Adapters\AbstractEntityAdapter::getDataForSubmit()
  */
 public function getDataForSubmit()
 {
     $arr_data = parent::getDataForSubmit();
     //manipulate date to valid format
     if ($arr_data["date_expiry"] != "") {
         $objDate = \DateTime::createFromFormat($this->format_date, $arr_data["date_expiry"]);
         if (!$objDate) {
             throw new \Exception(__CLASS__ . " : Line " . __LINE__ . " : An error occurred setting the expiry date", 500);
         }
         //end if
         $arr_data["date_expiry"] = $objDate->format('c');
     }
     //end if
     return $arr_data;
 }
 /**
  * (non-PHPdoc)
  * @see \FrontCore\Adapters\AbstractEntityAdapter::getDataForSubmit()
  */
 public function getDataForSubmit()
 {
     $arr_data = parent::getDataForSubmit();
     //manipulate dates for compatible api restrictions
     if ($arr_data["date_expiry"] != "") {
         $objDate = \DateTime::createFromFormat($this->format_date, $arr_data["date_expiry"]);
         $arr_data["date_expiry"] = $objDate->format("c");
     }
     //end if
     if ($arr_data["date_start"] != "") {
         $objDate = \DateTime::createFromFormat($this->format_date, $arr_data["date_start"]);
         $arr_data["date_start"] = $objDate->format("c");
     }
     //end if
     return $arr_data;
 }