Implemented interface member:
method
ToString
System.IFormattable.ToString(System.String, System.IFormatProvider)
11 references to ToString
aspire-server (1)
Ats\AtsMarshaller.cs (1)
170
return JsonValue.Create(((DateOnly)value).
ToString
("O", System.Globalization.CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Components (4)
BindConverter.cs (4)
505
/// <param name="format">The format to use. Provided to <see cref="DateOnly.
ToString
(string, IFormatProvider)"/>.</param>
544
/// <param name="format">The format to use. Provided to <see cref="DateOnly.
ToString
(string, IFormatProvider)"/>.</param>
593
/// <param name="format">The format to use. Provided to <see cref="DateOnly.
ToString
(string, IFormatProvider)"/>.</param>
632
/// <param name="format">The format to use. Provided to <see cref="DateOnly.
ToString
(string, IFormatProvider)"/>.</param>
Microsoft.AspNetCore.Components.Tests (1)
BindConverterTest.cs (1)
204
var expected = value.
ToString
("MM-yyyy", CultureInfo.InvariantCulture);
System.ComponentModel.TypeConverter (2)
System\ComponentModel\DateOnlyConverter.cs (2)
90
return dateOnly.
ToString
("yyyy-MM-dd", culture);
93
return dateOnly.
ToString
(culture.DateTimeFormat.ShortDatePattern, culture);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
788
public string ToString([StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string? format) =>
ToString
(format, null);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
479
writer.WriteString(value.
ToString
("yyyy-MM-dd", CultureInfo.InvariantCulture));
System.Private.Xml (1)
System\Xml\Serialization\Xmlcustomformatter.cs (1)
85
return value.
ToString
("yyyy-MM-dd", CultureInfo.InvariantCulture);