Skip to content

Get_Date_Attribute

Obsolete

This command is obsolete. Use Get_Attribute and DF_DATE_FORMAT instead.

See Also: Set_Date_Attribute

Purpose

To return the values of attributes that control the behavior of the date system with regard to the century change at the Year 2000.

Syntax

Get_Date_Attribute {attribute} To {variable}

Argument Explanation

  • attribute:
  • SysDate4_State: Controls whether the sysdate command returns dates with the year in two or four digits.
  • Date4_State: Controls whether entries of dates with two-digit years are converted to and from dates with four-digit years on saving to and retrieving from disk respectively.
  • Epoch_Value: Sets the two-digit year value above which dates are considered to be in the 1900s and below which dates are considered to be in the 2000s.

  • variable:

  • To hold True or False for SysDate4_State and Date4_State, and integer values 0 through 99 for Epoch_Value.

What It Does

Get_Date_Attribute returns the values of the three attributes that manage the running program's behavior in the entry of dates with two-digit years with regard to the change of century at the Year 2000.

Get_Date_Attribute Date4_State To iConverted

In this example, the integer variable iConverted is zero if the value of Date4_State is False, and one if it is True.

Notes

  • Settings of Epoch_Value have no effect if Date4_State has not been set to True.

  • If the running program has not executed a Set_Date_Attribute Date4_State command, this command gets the values of the UseEpoch registry key. If no Set_Date_Attribute Epoch_Value statement has been executed, it gets the value of the Epoch registry key.