Date2DigitStr Function
Returns Date as a String in the format YYYYMMDD.

Unit
QESBPCSDateTime

Declaration
Function Date2DigitStr(const DT: TDateTime): string;

Description
If ESBBlankWhenZero is true and the Date is Zero, then an Empty String will be returned.

If an error occurs an Empty String is Returned. If ESBRaiseDateError is true then an Exception is raised if a Date Conversion error occurs.

Parameters
DT Date/Time to Convert.

Category
Date/Time Conversion Routines

Implementation

function Date2DigitStr (const DT: TDateTime): string;
begin
     Result := Date2FormatStr (DT, 'YYYYMMDD');
End;


HTML generated by Time2HELP
http://www.time2help.com