System.Web.UI.WebControls.BaseCompareValidator.CutoffYear Property

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

Syntax

protected static int CutoffYear { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the BaseCompareValidator.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 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 System.Globalization.Calendar.TwoDigitYearMax property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0