Utilities.TwoDigitYearCenturyWindow Property

Applies to TestComplete 15.69, last modified on November 13, 2024
This property is obsolete. See the Remarks section below.

Description

This property is used by methods of the Utilities object for converting strings to date and time values. To be more specific, the variable is used to convert strings that hold years in the two-digit format. In this case, the converting routines (StrToDate or StrToDateTime) subtract the TwoDigitYearCenturyWindow value from the current year and then use the resulting number as the base for determining the century to which the two-digit-year date belongs. For instance, if the string to be converted is “5/01/09”, the current year is 1998 and TwoDigitYearCenturyWindow is 100, the resultant date will be January, 5, 1909. If TwoDigitYearCenturyWindow is 40, the resultant date will be January, 5, 2009.

Declaration

Utilities.TwoDigitYearCenturyWindow

Read-Write Property Integer

Applies To

The property is applied to the following object:

Property Value

The integer value used to convert strings to date and time values. The default value of TwoDigitYearCenturyWindow is 50.

Remarks

This property is obsolete and supported for backward compatibility only. The value of this property is used by obsolete methods of the Utilities object. To convert strings, use the methods of the aqConvert object.

See Also

Working With Dates
StrToDate Method
StrToDateTime Method

Highlight search results