code: public function setArrivalDate(\DateTime $arrivalDate)
      {
          $this->arrivalDate = ($arrivalDate->format('dmy') !== '000000') ? $arrivalDate->format('dmy') : null;
          $time = $arrivalDate->format('Hi');
          if ($time !== '0000') {
              $this->arrivalTime = $time;
          }
      }
docs: Load Arrival date info from \DateTime
  
  @param \DateTime $arrivalDate