NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Calendar.TwoDigitYearMax

Gets and sets the maximum value to represent a 2-digit year.

[Visual Basic]
Overridable Public Property TwoDigitYearMax As Integer
[C#]
public int TwoDigitYearMax {virtual get; virtual set;}
[C++]
public: __property virtual int get_TwoDigitYearMax();
public: __property virtual void set_TwoDigitYearMax(int);
[JScript]
public function get TwoDigitYearMax() : int;
public function set TwoDigitYearMax(int);

Property Value

Gets and sets[RB11] the maximum value to represent a 2-digit year.

Remarks

This value is the upper boundary of a 100-year range that allows a 2-digit year to be properly translated to a 4-digit year. For example, if 2029 is the upper boundary, a 2-digit value of 30 should be interpreted as 1930 while a 2-digit value of 29 should be interpreted as 2029. In this example, the 100-year range would be from 1930 through 2029.

See Also

Calendar Class | Calendar Members | System.Globalization Namespace