Model/Moodboard.php
public function setExpireDate($expireDate)
    {
        if ($expireDate instanceof DateTime) {
            $this->expireDate = $expireDate;
        } else {
            try {
                $this->expireDate = new DateTime($expireDate);
            } catch (\Exception $e) {
                $this->expireDate = null;
            }
        }

        return $this;
    }
public function setExpireDate($expireDate)
    {
        if ($expireDate instanceof DateTime) {
            $this->expireDate = $expireDate;
        } else {
            try {
                $this->expireDate = new DateTime($expireDate);
            } catch (\Exception $e) {
                $this->expireDate = null;
            }
        }

        return $this;
    }
Sets the "expireDate" of the Moodboard.

@param DateTime $expireDate

@return Moodboard