SetCentury

<< Click to Display Table of Contents >>

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

SetCentury

Declaration

procedure SetCentury( const Value: WordBool );

Description

Indicates whether or not the two digits of the year designating century are to be returned by TApolloTable's GetDateString method as part of a date string formatted according to the SetDateFormat setting.

Parameters

If True, the century digits will be returned. If False, they will not.

Delphi Example

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

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

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

See Also

Century, SetEpoch, GetDateString, Replace, SetDateFormat