@namespace AntDesign.Internal @inherits DatePickerPanelBase @using System.Globalization; @{ var calendar = CultureInfo.InvariantCulture.Calendar; int startYear = PickerValue.Year / 100 * 100 - 10; DateTime startDate = new DateTime(startYear, 1, 1); int yearIndex = 0; const int MAX_ROW = 4; const int MAX_COL = 3; const int FIRST_YEAR_INDEX = 0; const int LAST_YEAR_INDEX = MAX_ROW * MAX_COL; } @{yearIndex++;} @(currentColDate.Year)-@(currentColDate.Year + 9)