Web.HTTPApp.ParseDate
Delphi
function ParseDate(const DateStr: string): TDateTime;
C++
extern DELPHI_PACKAGE System::TDateTime __fastcall ParseDate(const System::UnicodeString DateStr);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
Description
Converts a date value from an HTTP message header into a TDateTime.
HTTP message headers permit several formats for the representation of date and time values. ParseDate converts from any of these formats into a TDateTime. ParseDate allows server applications to work with date values taken from HTTP request messages, without worrying about the details of how they are formatted.
Use ParseDate when interpreting temporal header values in HTTP request messages when they are not already parsed as a property of TWebRequest. TWebRequest parses the Date header and Expires header automatically.