Previous Topic: Special Timestamp Property HandlingNext Topic: Repeating Group Property Handling


Special Date Property Handling

The COM Proxy provides three interfaces for a Date property.

The name of the first property is the same as given to the unique attribute property and the name of the other two properties are the same name with the suffix AsString or AsLong respectively. The COM automation Date type is limited to representing date values between 100.01.01 and 9999.12.31. To deal with date values outside that range, you can use the String or Long interface.

The String interface requires an eight-digit BSTR containing a date value in format of YYYYMMDD that is four digits for year, two digits for month and two digits for day.

For example, attribute HireDate of date domain for entity view name Import and entity Employee:

Op.ImportEmployeeHireDateAsString = "19921001"; /* Oct. 1st, 19992 */

The Long interface requires an eight-digit long integer containing a date value in the format of YYYYMMDD that is four digits for year, two digits for month and two digits for day.

For example, attribute HireDate of date domain for entity view name Import and entity Employee:

Op.ImportEmployeeHireDateAsLong = 19921001;  /* Oct. 1st, 19992 */