src/Valkyrja/Http/NativeResponse.php
public function getDateHeader(): DateTime
    {
        if (! $this->headers->has('Date')) {
            $this->setDateHeader(DateTime::createFromFormat('U', time()));
        }

        return $this->headers->get('Date');
    }
public function getDateHeader(): DateTime
    {
        if (! $this->headers->has('Date')) {
            $this->setDateHeader(DateTime::createFromFormat('U', time()));
        }

        return $this->headers->get('Date');
    }
Returns the Date header as a DateTime instance.

@throws \RuntimeException When the header is not parseable

@return DateTime A DateTime instance