2DIGITYEARS

2DIGITYEARS allows DataFlex dates to be interpreted as either two or four digit years .

 

2DIGITYEARS = 1 

 

If 2DIGITYEARS = 1 and the year is greater than or equal to 1900, DataFlex uses the last two digit of the year.

 

Example:

If 2DIGITYEARS = 1 and year = 1955, DataFlex uses 55 as the year

If 2DIGITYEARS = 1 and year = 2010, DataFlex uses 10 as the year

 

If 2DigitYears = 0, DataFlex uses the all four digit of the year.

 

Example:

If 2DIGITYEARS = 0 and year = 1955, DataFlex uses 1955 as the year

If 2DIGITYEARS = 0 and year = 2010, DataFlex uses 2010 as the year

 

Default = 1.

 

Warning: If the DataFlex date is earlier than 1900, set 2DigitYears = 0. Otherwise there will be unpredictable date results.

 

Environments: Client,Windows, Linux. DataFlex

Configuration Manager: CONNX Settings; Current Key = CONNX\Dataflex; Key Value/Value Name =  2DIGITYEARS

Unix SQL Registry: CONNX.DATAFLEX.2DIGITYEARS