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)
1750
return DateTimeFormat.
Format
(this, "D", null);
1755
return DateTimeFormat.
Format
(this, "T", null);
1760
return DateTimeFormat.
Format
(this, "d", null);
1765
return DateTimeFormat.
Format
(this, "t", null);
1770
return DateTimeFormat.
Format
(this, null, null);
1775
return DateTimeFormat.
Format
(this, format, null);
1780
return DateTimeFormat.
Format
(this, null, provider);
1785
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);