System.DateUtils.DateToRFC822

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DateToRFC822(const ADate: TDateTime; AInputIsUTC: Boolean = True): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall DateToRFC822(const System::TDateTime ADate, bool AInputIsUTC = true);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Converts a TDateTime value to RFC-822 format.

If AInputIsUTC is true, then the resulting RFC-822 string will show the exact same time that ADate has.

RFC-822 is a representation of ADate. The resulting string will be in UTC, i.e. will have a GMT post fix. If AInputIsUTC = true, then the time portion of ADate will not be modified.


See Also