Get or set the Date HTTP header value to use in an HTTP request.
Assembly: System (in System.dll)
If the Date header is Nothing, then the return value will be set to DateTime.MinValue.
The property is a standard System.DateTime object and can contain a System.DateTimeKind field of DateTimeKind.Local, DateTimeKind.Utc, or DateTimeKind.Unspecified. Any kind of time can be set when using the property. If DateTimeKind.Unspecified is set or retrieved, the property is assumed to be DateTimeKind.Local (local time).
The classes in the System.Net namespace always write it out the property on the wire during transmission in standard form using GMT (Utc) format.
The value for this property is stored in WebHeaderCollection. If WebHeaderCollection is set, the property value is lost.
If the is set and an attempt is made to send a HttpWebRequest with no body, then a System.Net.ProtocolViolationException will be thrown by the BeginGetResponse, GetResponse, and EndGetResponse methods.