Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CutoffYear Property
Collapse the table of content
Expand the table of content

BaseCompareValidator.CutoffYear Property

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

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected static int CutoffYear { get; }
/** @property */
protected static int get_CutoffYear ()

protected static function get CutoffYear () : int

Property Value

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

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.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft