SetDateFormat

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloEnv > TApolloEnv Methods >

SetDateFormat

Declaration

procedure SetDateFormat( const Value: TApolloDateFrmt );

Description

Defines the format of date strings returned by GetDateString.

Parameters

Any one of the following TApolloDateFrmt enumerated types:

 

dfAmerican 0 'MM/DD/YY'

dfAnsi  1 'YY.MM.DD'

dfBritish  2 'DD/MM/YY'

dfFrench  3 'DD/MM/YY'

dfGerman 4 'DD.MM.YY'

dfItalian  5 'DD-MM-YY'

dfSpanish 6 'DD-MM-YY'

dfWinDefault 7 (Windows default setting)

 

If SetCentury is True, the century digits will precede the year digits in each of the formats shown above.

Delphi Example

ApolloEnv1.SetCentury( True ); // dates to display century

ApolloEnv1.SetDateFormat( dfGerman ); // date format DD.MM.CCYY

ApolloEnv1.SetDeleted( True ); // filter deleted records

See Also

DateFormat, SetCentury, SetEpoch, GetDateJulian, GetDateString, Replace