[]
        
(Showing Draft Content)

C1.Globalization.CalendarEx.ToFourDigitYear

ToFourDigitYear Method

ToFourDigitYear(int, int)

Converts the specified two-digit year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century.

Declaration
public virtual int ToFourDigitYear(int year, int twoDigitYearMax)
Public Overridable Function ToFourDigitYear(year As Integer, twoDigitYearMax As Integer) As Integer
Parameters
Type Name Description
int year

A two-digit integer that represents the year to convert.

int twoDigitYearMax

A int value indicates the two digit year max.

Returns
Type Description
int

An integer that contains the four-digit representation of year.

Exceptions
Type Condition
ArgumentOutOfRangeException

year is outside the range supported by the calendar or twoDigitYearMax large than 99 or twoDigitYearMax less than 9999.