GregorianCalendar: TwoDigitYearMax (get)

TwoDigitYearMax

Returns the maximum year to be created from a 2-digit year.



 Public Property Get TwoDigitYearMax ( ) As Long

Return Values

Long -  The maximum year to be created.

Remarks

The property allows a 2-digit year (0 to 99) to be converted to a 4-digit year(0001 to 9999). The 2-digit year of 99 does not necessarily corrispond to the largest year to be created. For example, for a maximum year of 2029, the value 99 would convert to 1999 and 0 would convert to 2000. The years 29 would become 2029 and 30 would become 1930.

Read/Write.

See Also

Project CorLib Overview

Class GregorianCalendar Overview