Spread Windows Forms 9.0 Product Documentation
TwoDigitYearMax Property (IRegionalSettings)


Gets or sets the last year of a 100-year range that can be represented by a two-digit year.
Syntax
'Declaration
 
Property TwoDigitYearMax As Integer
'Usage
 
Dim instance As IRegionalSettings
Dim value As Integer
 
instance.TwoDigitYearMax = value
 
value = instance.TwoDigitYearMax
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

IRegionalSettings Interface
IRegionalSettings Members
LongDateFormat Property
ShortDateFormat Property

 

 


Copyright © GrapeCity, inc. All rights reserved.