Spread Windows Forms 6.0 Product Documentation
TwoDigitYearMax Property
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win.SuperEdit Namespace > RegionalSettings Class : TwoDigitYearMax Property


Glossary Item Box

Gets or sets the year value used to calculate the century for two-digit year values.

Syntax

Visual Basic (Declaration) 
Public Property TwoDigitYearMax As Integer
Visual Basic (Usage)Copy Code
Dim instance As RegionalSettings
Dim value As Integer
 
instance.TwoDigitYearMax = value
 
value = instance.TwoDigitYearMax
C# 
public int TwoDigitYearMax {get; set;}

Property Value

Integer number for the maximum year

Remarks

The control determines the century value for two-digit years by placing the year in the range between the value of this property and the value of this property minus 99 years. To change the calculation year, provide a four-digit value.

Tip: For best results, prompt your user for and represent dates with four-digit year values. Four-digit year values eliminate possible misunderstanding of year data.

The maximum year you can specify for the calculation year is 9999. The minimum year you can specify for the calculation year is 1100.

You can specify whether date cells display the century for date values using the LongDateFormat or ShortDateFormat property.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.