RAD Studio VCL Reference
TWebRequest.Date Property

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

property Date: TDateTime;
__property TDateTime Date;

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!