1 write to Year
System.Text.Json (1)
System\Text\Json\JsonHelpers.Date.cs (1)
171parseData.Year = (int)(digit1 * 1000 + digit2 * 100 + digit3 * 10 + digit4);
5 references to Year
System.Text.Json (5)
System\Text\Json\JsonHelpers.Date.cs (5)
498if (parseData.Year == 0) 504Debug.Assert(parseData.Year <= 9999); // All of our callers to date parse the year from fixed 4-digit fields so this value is trusted. 513if (dayMinusOne >= 28 && dayMinusOne >= DateTime.DaysInMonth(parseData.Year, parseData.Month)) 541ReadOnlySpan<int> days = DateTime.IsLeapYear(parseData.Year) ? DaysToMonth366 : DaysToMonth365; 542int yearMinusOne = parseData.Year - 1;