System.DateUtils.DateToRFC822
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.
ADateis a TDateTime value.
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.