Implemented interface member:
method
ToString
System.IFormattable.ToString(System.String, System.IFormatProvider)
155 references to ToString
Aspire.Dashboard (7)
ConsoleLogs\TimestampParser.cs (1)
39return dateTimeLocal.ToString(KnownFormats.ConsoleLogsTimestampFormat, CultureInfo.CurrentCulture);
Utils\FormatHelpers.cs (6)
82MillisecondsDisplay.None => local.ToString("T", cultureInfo), 83MillisecondsDisplay.Truncated => local.ToString(GetLongTimePatternWithMilliseconds(cultureInfo).TruncatedMilliseconds, cultureInfo), 84MillisecondsDisplay.Full => local.ToString(GetLongTimePatternWithMilliseconds(cultureInfo).FullMilliseconds, cultureInfo), 97MillisecondsDisplay.None => local.ToString("G", cultureInfo), 98MillisecondsDisplay.Truncated => local.ToString(GetShortDateLongTimePatternWithMilliseconds(cultureInfo).TruncatedMilliseconds, cultureInfo), 99MillisecondsDisplay.Full => local.ToString(GetShortDateLongTimePatternWithMilliseconds(cultureInfo).FullMilliseconds, cultureInfo),
Aspire.Hosting.Tests (4)
Dashboard\DashboardLifecycleHookTests.cs (4)
80Timestamp = timestamp.ToString(KnownFormats.ConsoleLogsTimestampFormat, CultureInfo.InvariantCulture), 86$"{DateTime.UtcNow.ToString(KnownFormats.ConsoleLogsTimestampFormat, CultureInfo.InvariantCulture)} {messageJson}", 93$"{DateTime.UtcNow.ToString(KnownFormats.ConsoleLogsTimestampFormat, CultureInfo.InvariantCulture)}{messageJson}", 112Timestamp = timestamp.ToString(KnownFormats.ConsoleLogsTimestampFormat, CultureInfo.InvariantCulture),
AuthSamples.FunctionalTests (4)
CustomPolicyProviderTests.cs (4)
51var signIn = await SignIn(Client, "Dude", DateTime.Now.Subtract(TimeSpan.FromDays(365 * 20)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture)); 67var signIn = await SignIn(Client, "Dude", DateTime.Now.Subtract(TimeSpan.FromDays(365 * 5)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture)); 82var signIn = await SignIn(Client, "Dude", DateTime.Now.Subtract(TimeSpan.FromDays(365 * 55)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture)); 98var signIn = await SignIn(Client, "Dude", DateTime.Now.Subtract(TimeSpan.FromDays(365 * 20)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture));
dotnet-svcutil-lib (12)
CommandProcessorOptions.cs (1)
574var sessionDirName = DateTime.Now.ToString("yyyy_MMM_dd_HH_mm_ss", CultureInfo.InvariantCulture);
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (2)
874return dateTime.ToString(format, CultureInfo.InvariantCulture); 896return dateTime.ToString("yyyy/MM/dd\\THH:mm:ss", CultureInfo.InvariantCulture);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
841return value.ToString(format, DateTimeFormatInfo.InvariantInfo);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (8)
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasCreationAheadOfExpiry, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture)))); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasExpiryTimeInPast, this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasCreationTimeInFuture, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampWasCreatedTooLongAgo, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), timeToLive, allowedClockSkew)));
HelixTestRunner (2)
ProcessUtil.cs (2)
211public static void PrintMessage(string message) => Console.WriteLine($"{DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)} {message}"); 212public static void PrintErrorMessage(string message) => Console.Error.WriteLine($"{DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)} {message}");
LocalizationSample (4)
Startup.cs (4)
94await context.Response.WriteAsync($"<tr><th>{SR["Current date (invariant full):"]}</th><td>{DateTime.Now.ToString("F", CultureInfo.InvariantCulture)}</td></tr>"); 96await context.Response.WriteAsync($"<tr><th>{SR["Current date (request full):"]}</th><td>{DateTime.Now.ToString("F", CultureInfo.CurrentCulture)}</td></tr>"); 98await context.Response.WriteAsync($"<tr><th>{SR["Current time (invariant):"]}</th><td>{DateTime.Now.ToString("T", CultureInfo.InvariantCulture)}</td></tr>"); 99await context.Response.WriteAsync($"<tr><th>{SR["Current time (request):"]}</th><td>{DateTime.Now.ToString("T", CultureInfo.CurrentCulture)}</td></tr>");
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonValue.cs (1)
413: new JsonValue(value.Value.ToString("o", CultureInfo.InvariantCulture));
Microsoft.Analyzers.Local.Tests (5)
Json\JsonValueTest.cs (5)
73Assert.True(new JsonValue(DateTime.Now.ToString("o", CultureInfo.InvariantCulture)).IsDateTime); 161Assert.Equal(now, new JsonValue(now.ToString("o", CultureInfo.InvariantCulture)).AsDateTime); 211Assert.Equal(time.ToString("o", CultureInfo.InvariantCulture), ((JsonValue)time).AsString); 300Assert.Equal(now, (DateTime)new JsonValue(now.ToString("o", CultureInfo.InvariantCulture))); 305Assert.Equal(now, (DateTime?)new JsonValue(now.ToString("o", CultureInfo.InvariantCulture)));
Microsoft.AspNetCore.Components (7)
BindConverter.cs (7)
344return value.ToString(format, culture ?? CultureInfo.CurrentCulture); 370/// <param name="format">The format to use. Provided to <see cref="DateTime.ToString(string, IFormatProvider)"/>.</param> 387return value.Value.ToString(format, culture ?? CultureInfo.CurrentCulture); 517return value.ToDateTime(TimeOnly.MinValue).ToString(format, culture ?? CultureInfo.CurrentCulture); 561return value.Value.ToDateTime(TimeOnly.MinValue).ToString(format, culture ?? CultureInfo.CurrentCulture); 605return DateTime.MinValue.Add(value.ToTimeSpan()).ToString(format, culture ?? CultureInfo.CurrentCulture); 649return DateTime.MinValue.Add(value.Value.ToTimeSpan()).ToString(format, culture ?? CultureInfo.CurrentCulture);
Microsoft.AspNetCore.Components.Tests (5)
BindConverterTest.cs (1)
176var expected = value.ToString("MM-yyyy", CultureInfo.InvariantCulture);
EventCallbackFactoryBinderExtensionsTest.cs (4)
435await binder.InvokeAsync(new ChangeEventArgs() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), }); 455await binder.InvokeAsync(new ChangeEventArgs() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), }); 513await binder.InvokeAsync(new ChangeEventArgs() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), }); 533await binder.InvokeAsync(new ChangeEventArgs() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), });
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\InputBaseTest.cs (1)
578=> value.ToString("yyyy/MM/dd", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\XmlKeyManager.cs (1)
160return dateTime.UtcDateTime.ToString("yyyyMMddTHHmmssFFFFFFFZ", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
147builder.Append(dateTime.ToString("yyyy'-'MM'-'dd'T'HH:mm:ss", CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
147builder.Append(dateTime.ToString("yyyy'-'MM'-'dd'T'HH:mm:ss", CultureInfo.InvariantCulture));
Microsoft.AspNetCore.HttpLogging (3)
W3CLoggerProcessor.cs (1)
29await WriteMessageAsync("#Start-Date: " + DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture), streamWriter, cancellationToken);
W3CLoggingMiddleware.cs (2)
84shouldLog |= AddToList(elements, _dateIndex, now.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)); 89shouldLog |= AddToList(elements, _timeIndex, now.ToString("HH:mm:ss", CultureInfo.InvariantCulture));
Microsoft.AspNetCore.HttpLogging.Tests (2)
W3CLoggerTests.cs (2)
29AddToList(elements, W3CLoggingMiddleware._dateIndex, _timestampOne.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)); 30AddToList(elements, W3CLoggingMiddleware._timeIndex, _timestampOne.ToString("HH:mm:ss", CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestHeaderTests.cs (1)
289yield return (HttpSysRequestHeader.Date, new DateTime(2022, 11, 14).ToString("r", CultureInfo.InvariantCulture));
Microsoft.Build (5)
ExceptionHandling.cs (1)
369writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
Logging\LogFormatter.cs (1)
41return timeStamp.ToString("HH:mm:ss.fff", CultureInfo.CurrentCulture);
Modifiers.cs (3)
514modifiedItemSpec = info.LastWriteTime.ToString(FileTimeFormat, null); 530modifiedItemSpec = File.GetCreationTime(unescapedItemSpec).ToString(FileTimeFormat, null); 546modifiedItemSpec = File.GetLastAccessTime(unescapedItemSpec).ToString(FileTimeFormat, null);
Microsoft.Build.Engine (4)
Logging\LogFormatter.cs (1)
40return timeStamp.ToString("HH:mm:ss.fff", CultureInfo.CurrentCulture);
Shared\FileUtilities.cs (3)
440modifiedItemSpec = info.LastWriteTime.ToString(FileTimeFormat, null); 458modifiedItemSpec = File.GetCreationTime(unescapedItemSpec).ToString(FileTimeFormat, null); 476modifiedItemSpec = File.GetLastAccessTime(unescapedItemSpec).ToString(FileTimeFormat, null);
Microsoft.Build.Engine.OM.UnitTests (1)
ExceptionHandling.cs (1)
369writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
Microsoft.Build.Engine.UnitTests (3)
LogFormatter_Tests.cs (3)
50Assert.Equal(testTime.ToString("HH:mm:ss.fff", CultureInfo.CurrentCulture), result); 54Assert.Equal(testTime.ToString("HH:mm:ss.fff", CultureInfo.CurrentCulture), result); 58Assert.Equal(testTime.ToString("HH:mm:ss.fff", CultureInfo.CurrentCulture), result);
Microsoft.Build.Tasks.Core (4)
ExceptionHandling.cs (1)
369writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
Modifiers.cs (3)
514modifiedItemSpec = info.LastWriteTime.ToString(FileTimeFormat, null); 530modifiedItemSpec = File.GetCreationTime(unescapedItemSpec).ToString(FileTimeFormat, null); 546modifiedItemSpec = File.GetLastAccessTime(unescapedItemSpec).ToString(FileTimeFormat, null);
Microsoft.Build.Utilities.Core (4)
ExceptionHandling.cs (1)
369writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
Modifiers.cs (3)
514modifiedItemSpec = info.LastWriteTime.ToString(FileTimeFormat, null); 530modifiedItemSpec = File.GetCreationTime(unescapedItemSpec).ToString(FileTimeFormat, null); 546modifiedItemSpec = File.GetLastAccessTime(unescapedItemSpec).ToString(FileTimeFormat, null);
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\DateAndTime\EmbeddedCompletionContext.cs (1)
103formattedDate = s_exampleDateTime.ToString(formatString, culture);
Microsoft.CodeAnalysis.Test.Utilities (1)
TestHelpers.cs (1)
55return ((DateTime)value).ToString("M/d/yyyy h:mm:ss tt", CultureInfo.InvariantCulture);
Microsoft.CodeAnalysis.VisualBasic (1)
SymbolDisplay\ObjectDisplay.vb (1)
331Return value.ToString("#M/d/yyyy hh:mm:ss tt#", CultureInfo.InvariantCulture)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
67valStr = DirectCast(val, DateTime).ToString("M/d/yyyy h:mm:ss tt", CultureInfo.InvariantCulture)
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (1)
src\Compilers\VisualBasic\Portable\SymbolDisplay\ObjectDisplay.vb (1)
331Return value.ToString("#M/d/yyyy hh:mm:ss tt#", CultureInfo.InvariantCulture)
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesExtensions.cs (1)
224.ToString("D", CultureInfo.InvariantCulture);
Microsoft.VisualBasic.Core (15)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (3)
2221Return Value.ToString("T", Nothing) 2224Return Value.ToString("d", Nothing) 2226Return Value.ToString("G", Nothing)
Microsoft\VisualBasic\CompilerServices\StringType.vb (3)
74Return Value.ToString("T", Nothing) 77Return Value.ToString("d", Nothing) 79Return Value.ToString(GENERAL_FORMAT, Nothing)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
2341Return dt.ToString(sFormat, m_WriteDateFormatInfo)
Microsoft\VisualBasic\Strings.vb (8)
1139ReturnValue = CDate(Expression).ToString("T", Nothing) 1145ReturnValue = CDate(Expression).ToString("D", Nothing) 1166ReturnValue = CDate(Expression).ToString("t", Nothing) 1172ReturnValue = CDate(Expression).ToString("d", Nothing) 1198ReturnValue = CDate(Expression).ToString("T", Nothing) 1204ReturnValue = CDate(Expression).ToString("D", Nothing) 1213ReturnValue = CDate(Expression).ToString("G", Nothing) 1422Return Expression.ToString(sFormat, Nothing)
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (2)
159fileName += $"-{Now.Date.ToString(DATE_FORMAT, CultureInfo.InvariantCulture)}" 163fileName += $"-{_firstDayOfWeek.Date.ToString(DATE_FORMAT, CultureInfo.InvariantCulture)}"
MSBuild (4)
ExceptionHandling.cs (1)
369writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
Modifiers.cs (3)
514modifiedItemSpec = info.LastWriteTime.ToString(FileTimeFormat, null); 530modifiedItemSpec = File.GetCreationTime(unescapedItemSpec).ToString(FileTimeFormat, null); 546modifiedItemSpec = File.GetLastAccessTime(unescapedItemSpec).ToString(FileTimeFormat, null);
MSBuildTaskHost (4)
ExceptionHandling.cs (1)
369writer.WriteLine(DateTime.Now.ToString("G", CultureInfo.CurrentCulture));
Modifiers.cs (3)
514modifiedItemSpec = info.LastWriteTime.ToString(FileTimeFormat, null); 530modifiedItemSpec = File.GetCreationTime(unescapedItemSpec).ToString(FileTimeFormat, null); 546modifiedItemSpec = File.GetLastAccessTime(unescapedItemSpec).ToString(FileTimeFormat, null);
PresentationFramework (4)
System\Windows\Controls\DatePicker.cs (2)
1009return d.ToString(dtfi.ShortDatePattern, dtfi); 1014return d.ToString(dtfi.LongDatePattern, dtfi);
System\Windows\Controls\DateTimeHelper.cs (2)
230result = date.Value.ToString(format.YearMonthPattern, format); 273result = date.Value.Date.ToString(format.LongDatePattern, format);
ReachFramework (1)
Packaging\XPSSignatureDefinition.cs (1)
386writer.WriteString(((DateTime)SignBy).ToUniversalTime().ToString("s", DateTimeFormatInfo.InvariantInfo) + "Z");
System.ComponentModel.TypeConverter (2)
System\ComponentModel\DateTimeConverter.cs (2)
99return dt.ToString("yyyy-MM-dd", culture); 117return dt.ToString(format, culture);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\DelimitedListTraceListener.cs (1)
190WriteEscaped(eventCache.DateTime.ToString("o", CultureInfo.InvariantCulture));
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
46value.UtcDateTime.ToString(Rfc3339FormatString, CultureInfo.InvariantCulture) : // prefer 'Z' over '+00:00'
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
173_webHeaders.Set(HttpKnownHeaderNames.Date, DateTime.UtcNow.ToString("r", CultureInfo.InvariantCulture));
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
693_value = dateTime.ToString("yyyy-MM-ddTHH:mm:ss.fffffffK", DateTimeFormatInfo.InvariantInfo);
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
169writer.WriteString(value.ToString(_dateTimeFormat.FormatString, _dateTimeFormat.FormatProvider));
System.Private.Xml (4)
System\Xml\BinaryXml\SqlUtils.cs (2)
581return dateTime.ToString(format, CultureInfo.InvariantCulture); 602return dateTime.ToString("yyyy/MM/dd\\THH:mm:ss", CultureInfo.InvariantCulture);
System\Xml\XmlConvert.cs (1)
699return value.ToString(format, DateTimeFormatInfo.InvariantInfo);
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
379return dt.ToString(format.Length != 0 ? format : null, new CultureInfo(locale));
System.Runtime.Caching (8)
System\Runtime\Caching\CacheExpires.cs (4)
571",now=" + DateTime.Now.ToString("o", CultureInfo.InvariantCulture) + 679" expired items, bucket=" + _bucket + "; Time=" + DateTime.Now.ToString("o", CultureInfo.InvariantCulture)); 743" expired items, bucket=" + _bucket + "; Time=" + DateTime.Now.ToString("o", CultureInfo.InvariantCulture)); 816Dbg.Trace("CacheExpiresFlushTotal", "FlushExpiredItems flushed a total of " + flushed + " items; Time=" + DateTime.Now.ToString("o", CultureInfo.InvariantCulture));
System\Runtime\Caching\CacheUsage.cs (2)
748" underused items; Time=" + DateTime.Now.ToString("o", CultureInfo.InvariantCulture)); 807" underused items; Time=" + DateTime.Now.ToString("o", CultureInfo.InvariantCulture));
System\Runtime\Caching\MemoryCacheStatistics.cs (1)
279Dbg.Trace("MemoryCacheStats", "**BEG** CacheManagerThread " + DateTime.Now.ToString("T", CultureInfo.InvariantCulture));
System\Runtime\Caching\MemoryMonitor.cs (1)
88+ " " + DateTime.Now.ToString("o", CultureInfo.InvariantCulture));
System.ServiceModel.Primitives (10)
System\ServiceModel\Security\SecurityTimestamp.cs (8)
159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasCreationAheadOfExpiry, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture)))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasExpiryTimeInPast, ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasCreationTimeInFuture, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampWasCreatedTooLongAgo, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), timeToLive, allowedClockSkew)));
System\ServiceModel\Security\WSTrust.cs (2)
1126writer.WriteString(effectiveTime.ToString("yyyy-MM-ddTHH:mm:ss.fffZ", CultureInfo.InvariantCulture.DateTimeFormat)); 1130writer.WriteString(expirationTime.ToString("yyyy-MM-ddTHH:mm:ss.fffZ", CultureInfo.InvariantCulture.DateTimeFormat));
System.Windows.Forms (2)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1009return value.ToString("G", CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1138private static string FormatDate(DateTime value) => value.ToString("d", CultureInfo.CurrentCulture);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\FormatControl.cs (1)
446return _value.ToString(FormatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormatControl.CustomFormatType.cs (2)
38label = s_dateTimeFormatValue.ToString(formatString, CultureInfo.CurrentCulture); 75label = s_dateTimeFormatValue.ToString(formatString, CultureInfo.CurrentCulture);
System\Windows\Forms\Design\FormatControl.DateTimeFormatType.cs (1)
31return s_dateTimeFormatValue.ToString(FormatString, CultureInfo.CurrentCulture);
System.Xaml (1)
System\Windows\Markup\DateTimeValueSerializer.cs (1)
111return dateTime.ToString(formatString.ToString(), TypeConverterHelper.InvariantEnglishUS);
System.Xaml.Tests (1)
System\Windows\Markup\DateTimeValueSerializerTests.cs (1)
43Assert.Equal(date.ToString(format, CultureInfo.InvariantCulture), serializer.ConvertToString(date, null));