This documentation is archived and is not being maintained.

HijriCalendar.TwoDigitYearMax Property

Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.

[Visual Basic]
Overrides Public Property TwoDigitYearMax As Integer
public override int TwoDigitYearMax {get; set;}
public: __property int get_TwoDigitYearMax();
public: __property void set_TwoDigitYearMax(int);
public override function get TwoDigitYearMax() : int;
public override function set TwoDigitYearMax(int);

Property Value

The last year of a 100-year range that can be represented by a 2-digit year.


This property allows a 2-digit year to be properly translated to a 4-digit year. For example, if this property is set to 1429, the 100-year range is from 1330 to 1429; therefore, a 2-digit value of 30 is interpreted as 1330, while a 2-digit value of 29 is interpreted as 1429.

The initial value of this property is derived from the settings in Regional and Language Options (or Regional Options or Regional Settings) in Control Panel in Windows. However, that information can change during the life of the AppDomain. The HijriCalendar class does not detect changes in the system settings automatically.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HijriCalendar Class | HijriCalendar Members | System.Globalization Namespace | ToFourDigitYear