15 references to Format
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (2)
766
'm' or 'd' or 'y' => DateTimeFormat.
Format
(GetEquivalentDateTime(), format, provider),
773
return DateTimeFormat.
Format
(GetEquivalentDateTime(), format, provider);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (8)
1734
return DateTimeFormat.
Format
(this, "D", null);
1739
return DateTimeFormat.
Format
(this, "T", null);
1744
return DateTimeFormat.
Format
(this, "d", null);
1749
return DateTimeFormat.
Format
(this, "t", null);
1754
return DateTimeFormat.
Format
(this, null, null);
1759
return DateTimeFormat.
Format
(this, format, null);
1764
return DateTimeFormat.
Format
(this, null, provider);
1769
return DateTimeFormat.
Format
(this, format, provider);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (3)
1740
results[i] =
Format
(dateTime, allFormats[i], dtfi);
1749
results[i] =
Format
(universalTime, allFormats[i], dtfi);
1762
results = [
Format
(dateTime, char.ToString(format), dtfi)];
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (2)
938
't' => DateTimeFormat.
Format
(ToDateTime(), format, provider),
945
return DateTimeFormat.
Format
(ToDateTime(), format, provider);