Web.HTTPApp.TWebRequest.Date

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Date: TDateTime index 7 read GetDateVariable;

C++

__property System::TDateTime Date = {read=GetDateVariable, index=7};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebRequest

Description

Reports the value of the Date header of the HTTP request message.

Read Date to determine the date and time at which the HTTP request message originated. Date can be used to determine whether the Content of the request is still valid. The value of Date is translated into local time as specified by the system clock from the time units set by the Web client.

For example, if an HTTP request message specifies a MethodType of mtPost, and Date is older than the most recent values of the fields that are being posted, the server application may return a status code that indicates an error rather than overwriting more recent values.

Date is represented using the TDateTime type. The integral part of a TDateTime value is the number of days that have passed since Dec. 30 1899. The fractional part of a TDateTime value is the fraction of a 24-hour day that has elapsed.

See Also