getDate()
getDate(string $key, \DateTime $default = null) : \DateTimeInterface|null
Returns the HTTP header value converted to a date.
Parameters
string |
$key |
|
\DateTime |
$default |
|
Throws
- \RuntimeException
When the HTTP header is not parseable
Returns
\DateTimeInterface|null
—