This documentation is archived and is not being maintained.

BaseCompareValidator.CutoffYear Property

Gets the maximum year that can be represented by a two-digit year.

[Visual Basic]
Protected Shared ReadOnly Property CutoffYear As Integer
[C#]
protected static int CutoffYear {get;}
[C++]
protected: __property static int get_CutoffYear();
[JScript]
protected static function get CutoffYear() : int;

Property Value

The maximum year that can be represented by a two-digit year.

Remarks

Use the CutoffYear property to determine the maximum year that can be represented by a two-digit year in a 100-year range. For example, if this property contains the value 2029, you can represent the years 1930 to 2029 by using a two-digit year. The two-digit year 30 is interpreted as 1930, while 29 is interpreted as 2029. You cannot change the value of this property directly; however, you can change the maximum year that can be represented by a two-digit year by setting the Calendar.TwoDigitYearMax property.

Note   Since this property is static (Shared in Visual Basic), its value is shared with all instances of a derived class. You can also access the property without creating an instance of the class by qualifying the property name along with the class name. For example, BaseCompareValidator.CutoffYear.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

BaseCompareValidator Class | BaseCompareValidator Members | System.Web.UI.WebControls Namespace | System.Globalization.Calendar | Calendar.TwoDigitYearMax

Show: