null|DateTime
getDate(string $key, DateTime $default = null)
Returns the HTTP header value converted to a date.
Parameters string $key The parameter key DateTime $default The default value Return Value null|DateTime
The parsed DateTime or the default value if the header does not exist Exceptions RuntimeException When the HTTP header is not parseable