15 references to GetEquivalentDateTime
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (13)
86public int Year => GetEquivalentDateTime().Year; 91public int Month => GetEquivalentDateTime().Month; 96public int Day => GetEquivalentDateTime().Day; 106public int DayOfYear => GetEquivalentDateTime().DayOfYear; 139public DateOnly AddMonths(int value) => new DateOnly(DayNumberFromDateTime(GetEquivalentDateTime().AddMonths(value))); 146public DateOnly AddYears(int value) => new DateOnly(DayNumberFromDateTime(GetEquivalentDateTime().AddYears(value))); 210=> GetEquivalentDateTime().GetDate(out year, out month, out day); 721public override string ToString() => DateTimeFormat.Format(GetEquivalentDateTime(), "d", null); 735public string ToString(IFormatProvider? provider) => DateTimeFormat.Format(GetEquivalentDateTime(), "d", provider); 766'm' or 'd' or 'y' => DateTimeFormat.Format(GetEquivalentDateTime(), format, provider), 773return DateTimeFormat.Format(GetEquivalentDateTime(), format, provider); 812return DateTimeFormat.TryFormat(GetEquivalentDateTime(), destination, out charsWritten, format, provider); 825return DateTimeFormat.TryFormat(GetEquivalentDateTime(), destination, out charsWritten, format, provider);
src\libraries\System.Private.CoreLib\src\System\Globalization\ISOWeek.cs (2)
43public static int GetWeekOfYear(DateOnly date) => GetWeekOfYear(date.GetEquivalentDateTime()); 71public static int GetYear(DateOnly date) => GetYear(date.GetEquivalentDateTime());