FireDAC.Phys.ADS.TFDPhysADSDriverLink.Epoch

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Epoch: Word read GetEpoch write SetEpoch stored IsEpS;

C++

__property System::Word Epoch = {read=GetEpoch, write=SetEpoch, stored=IsEpS, nodefault};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Phys.ADS.pas
FireDAC.Phys.ADS.hpp
FireDAC.Phys.ADS TFDPhysADSDriverLink

Description

Specifies the default epoch for dates with two year digits.

Use the Epoch property to specify the default epoch for the textual dates with two year digits for the FireDAC Advantage driver.

Epoch determines how the date strings that contain only two year digits are interpreted.

For example, if a date is given as "5/15/98", then the Epoch value is used to determine the full four digit year. If a date is given as "5/15/1998", then the Epoch setting is not used.

The Epoch setting is interpreted as the 100-year range for the two digit year.

For example, if the Epoch value is 1970, a two digit year of "96" is interpreted as 1996, while a two digit year of "12" is interpreted as 2012. The default epoch value is 1900.

See Also