57 references to InvariantInfo
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 (8)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCustomFormatter.cs (1)
344return DateTime.ParseExact(value, s_allTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite | DateTimeStyles.NoCurrentDateDefault);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (6)
841return value.ToString(format, DateTimeFormatInfo.InvariantInfo); 881return value.ToString(format, DateTimeFormatInfo.InvariantInfo); 1382return DateTime.ParseExact(s, format, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite); 1391return DateTime.ParseExact(s, formats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite); 1443return DateTimeOffset.ParseExact(s, format, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite); 1452return DateTimeOffset.ParseExact(s, formats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1137if (DateTimeOffset.TryParse(value, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowWhiteSpaces | DateTimeStyles.AssumeLocal, out modifiedSinceDate))
Microsoft.AspNetCore.Http (1)
src\Shared\HttpRuleParser.cs (1)
190DateTimeFormatInfo invariant = DateTimeFormatInfo.InvariantInfo;
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\HttpRuleParser.cs (1)
190DateTimeFormatInfo invariant = DateTimeFormatInfo.InvariantInfo;
Microsoft.AspNetCore.Routing (1)
src\Shared\HttpRuleParser.cs (1)
190DateTimeFormatInfo invariant = DateTimeFormatInfo.InvariantInfo;
Microsoft.Net.Http.Headers (1)
src\Shared\HttpRuleParser.cs (1)
190DateTimeFormatInfo invariant = DateTimeFormatInfo.InvariantInfo;
ReachFramework (1)
Packaging\XPSSignatureDefinition.cs (1)
379writer.WriteString(((DateTime)SignBy).ToUniversalTime().ToString("s", DateTimeFormatInfo.InvariantInfo) + "Z");
System.Net.Http (2)
src\libraries\Common\src\System\Net\HttpDateParser.cs (2)
49DateTimeOffset.TryParseExact(input, "r", DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out result) || 50DateTimeOffset.TryParseExact(input, s_dateFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowInnerWhite | DateTimeStyles.AssumeUniversal, out result);
System.Net.Requests (2)
src\libraries\Common\src\System\Net\HttpDateParser.cs (2)
49DateTimeOffset.TryParseExact(input, "r", DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out result) || 50DateTimeOffset.TryParseExact(input, s_dateFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowInnerWhite | DateTimeStyles.AssumeUniversal, out result);
System.Private.CoreLib (20)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.TimeSpan.cs (1)
38decimalSeparator = DateTimeFormatInfo.InvariantInfo.DecimalSeparatorTChar<byte>();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (6)
937else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo)) 954dtfi = DateTimeFormatInfo.InvariantInfo; 956else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo)) 1048else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo)) 1062dtfi = DateTimeFormatInfo.InvariantInfo; 1064else if (ReferenceEquals(dtfi, DateTimeFormatInfo.InvariantInfo))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (6)
2142InsertHash(temp, InvariantInfo.AMDesignator, TokenType.SEP_Am | TokenType.Am, 0); 2143InsertHash(temp, InvariantInfo.PMDesignator, TokenType.SEP_Pm | TokenType.Pm, 1); 2151string str = InvariantInfo.GetMonthName(i); 2153str = InvariantInfo.GetAbbreviatedMonthName(i); 2160string str = InvariantInfo.GetDayName((DayOfWeek)i); 2163str = InvariantInfo.GetAbbreviatedDayName((DayOfWeek)i);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (3)
3961dtfi = DateTimeFormatInfo.InvariantInfo; 3967dtfi = DateTimeFormatInfo.InvariantInfo; 3977dtfi = DateTimeFormatInfo.InvariantInfo;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (4)
64serializedText.AppendSpanFormattable(rule.DateStart, DateTimeFormat, DateTimeFormatInfo.InvariantInfo); 66serializedText.AppendSpanFormattable(rule.DateEnd, DateTimeFormat, DateTimeFormatInfo.InvariantInfo); 157serializedText.AppendSpanFormattable(time.TimeOfDay, TimeOfDayFormat, DateTimeFormatInfo.InvariantInfo); 334if (!DateTime.TryParseExact(token, format, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out DateTime time))
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
693_value = dateTime.ToString("yyyy-MM-ddTHH:mm:ss.fffffffK", DateTimeFormatInfo.InvariantInfo);
System.Private.Xml (10)
System\Xml\Serialization\Xmlcustomformatter.cs (2)
400return DateTime.ParseExact(value, s_allTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite | DateTimeStyles.NoCurrentDateDefault | DateTimeStyles.RoundtripKind); 404return DateTime.ParseExact(value, s_allTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite | DateTimeStyles.NoCurrentDateDefault);
System\Xml\XmlConvert.cs (8)
699return value.ToString(format, DateTimeFormatInfo.InvariantInfo); 737return value.ToString(format, DateTimeFormatInfo.InvariantInfo); 1202return DateTime.ParseExact(s, format, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite); 1207return DateTime.ParseExact(s, formats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite); 1251return DateTimeOffset.ParseExact(s, format, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite); 1258return DateTimeOffset.ParseExact(s, formats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite); 1756return value.TryFormat(destination, out charsWritten, format, DateTimeFormatInfo.InvariantInfo); 1799return value.TryFormat(destination, out charsWritten, format, DateTimeFormatInfo.InvariantInfo);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1252if (DateTimeOffset.TryParse(value, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AllowWhiteSpaces | DateTimeStyles.AssumeLocal, out modifiedSinceDate))
System.ServiceModel.Primitives (2)
System\ServiceModel\Security\WSTrust.cs (2)
374WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime(); 380WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
System.Xaml (2)
System\Windows\Markup\DateTimeValueSerializer.cs (2)
54return DateTime.Parse(value, DateTimeFormatInfo.InvariantInfo, DateTimeStyles); 106return dateTime.ToString(formatString, DateTimeFormatInfo.InvariantInfo);