Converts a date value from an HTTP message header into a TDateTime.
function ParseDate(const DateStr: string): TDateTime;
TDateTime ParseDate(const AnsiString DateStr);
HTTPApp
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.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|