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