Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

HttpFormatDate

function HttpFormatDate(aUtc: TDateTime): string;
RFC 9110 section 5.6.7 HTTP-date. Format emits IMF-fixdate ('Sun, 06 Nov 1994 08:49:37 GMT', always GMT, English names whatever the locale - it is a protocol element). TryParse accepts the three forms a recipient MUST accept: IMF-fixdate, the obsolete RFC 850 form ('Sunday, 06-Nov-94 08:49:37 GMT') and asctime ('Sun Nov 6 08:49:37 1994'); a two-digit year is read as the most recent such year not more than 50 years in the future, per the section.