Edit

Share via


BaseCompareValidator.CutoffYear Property

Definition

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

C#
protected static int CutoffYear { get; }

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 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.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also