Implemented interface member:
method
ToString
System.IFormattable.ToString(System.String, System.IFormatProvider)
11 references to ToString
aspire-server (1)
Ats\AtsMarshaller.cs (1)
170return 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)
204var expected = value.ToString("MM-yyyy", CultureInfo.InvariantCulture);
System.ComponentModel.TypeConverter (2)
System\ComponentModel\DateOnlyConverter.cs (2)
90return dateOnly.ToString("yyyy-MM-dd", culture); 93return dateOnly.ToString(culture.DateTimeFormat.ShortDatePattern, culture);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
788public string ToString([StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string? format) => ToString(format, null);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
479writer.WriteString(value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture));
System.Private.Xml (1)
System\Xml\Serialization\Xmlcustomformatter.cs (1)
85return value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);