[]
Converts the specified two-digit year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century.
public virtual int ToFourDigitYear(int year, int twoDigitYearMax)
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. |
Type | Description |
---|---|
int | An integer that contains the four-digit representation of year. |
Type | Condition |
---|---|
ArgumentOutOfRangeException | year is outside the range supported by the calendar or twoDigitYearMax large than 99 or twoDigitYearMax less than 9999. |