This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page. class


HTTP header field containing date


The HTTPDateField is an HTTP header field containing a date. The fields implemented by this class contain a single date in standard HTTP date format.


obj = creates an HTTP date header field with the Name property set to name.

obj =,value) sets the Value property to value.


expand all

Date field name, specified as a string of one of these values: 'Date', 'Expires', 'Retry-After', 'Accept-Datetime', 'Last-Modified', or 'If-Modified-Since'.

To create a Date field, use the subclass.

Date, specified as a datetime object or a string in a valid HTTP date format as specified in RFC 7231 Semantics and Content, section Date/Time Formats. If a datetime object is provided without a time zone, it is assumed to be local.

Introduced in R2016b

Was this topic helpful?