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!

GregorianCalendar.TwoDigitYearMax

Returns the date and time converted to a DateTime value. This value is the upper boundary of a 100-year range that allows a two-digit year to be properly translated to a four-digit year.

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

Property Value

Read-only. Retrieves the maximum value to represent a two-digit year.

Example

If 2029 is the upper boundary, a two-digit value of 30 should be interpreted as 1930 while a two digit value of 29 should be interpreted as 2029. In this example, the 100-year range would be from 1930-2029.

See Also

GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace