57 references to InvariantInfo
mscorlib (18)
system\globalization\datetimeformat.cs (3)
874
dtfi = DateTimeFormatInfo.
InvariantInfo
;
885
dtfi = DateTimeFormatInfo.
InvariantInfo
;
940
dtfi = DateTimeFormatInfo.
InvariantInfo
;
system\globalization\datetimeformatinfo.cs (6)
2619
InsertHash(temp,
InvariantInfo
.AMDesignator, TokenType.SEP_Am | TokenType.Am, 0);
2620
InsertHash(temp,
InvariantInfo
.PMDesignator, TokenType.SEP_Pm | TokenType.Pm, 1);
2628
str =
InvariantInfo
.GetMonthName(i);
2630
str =
InvariantInfo
.GetAbbreviatedMonthName(i);
2636
String str =
InvariantInfo
.GetDayName((DayOfWeek)i);
2639
str =
InvariantInfo
.GetAbbreviatedDayName((DayOfWeek)i);
system\globalization\datetimeparse.cs (4)
3456
dtfi = DateTimeFormatInfo.
InvariantInfo
;
3461
dtfi = DateTimeFormatInfo.
InvariantInfo
;
3468
dtfi = DateTimeFormatInfo.
InvariantInfo
;
3473
dtfi = DateTimeFormatInfo.
InvariantInfo
;
system\timezoneinfo.cs (5)
3589
dateTimeFormat, DateTimeFormatInfo.
InvariantInfo
)));
3592
dateTimeFormat, DateTimeFormatInfo.
InvariantInfo
)));
3689
serializedText.Append(SerializeSubstitute(time.TimeOfDay.ToString(timeOfDayFormat, DateTimeFormatInfo.
InvariantInfo
)));
3697
serializedText.Append(SerializeSubstitute(time.TimeOfDay.ToString(timeOfDayFormat, DateTimeFormatInfo.
InvariantInfo
)));
3887
if (!DateTime.TryParseExact(token, format, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None, out time)) {
System.Data (4)
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
363
return this.DateTime.ToString("yyyy-MM-dd", DateTimeFormatInfo.
InvariantInfo
);
367
return new DateTime(_value._timeInfo.ticks).ToString(__katmaiTimeFormatByScale[scale], DateTimeFormatInfo.
InvariantInfo
);
371
return this.DateTime.ToString(__katmaiDateTime2FormatByScale[scale], DateTimeFormatInfo.
InvariantInfo
);
376
return dto.ToString(__katmaiDateTimeOffsetFormatByScale[scale], DateTimeFormatInfo.
InvariantInfo
);
System.IdentityModel (16)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
2536
created = DateTime.ParseExact(reader.ReadString(), DateTimeFormats.Accepted, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
2543
expires = DateTime.ParseExact(reader.ReadString(), DateTimeFormats.Accepted, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
1378
DateTime authInstantTime = DateTime.ParseExact(authenticationInstant, DateTimeFormats.Accepted, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
System\IdentityModel\Tokens\SamlAssertion.cs (1)
533
attributeValue, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
System\IdentityModel\Tokens\SamlAuthenticationStatement.cs (1)
180
authInstance, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
System\IdentityModel\Tokens\SamlConditions.cs (4)
116
time, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
121
time, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
163
writer.WriteString(this.notBefore.ToString(SamlConstants.GeneratedDateTimeFormat, DateTimeFormatInfo.
InvariantInfo
));
170
writer.WriteString(this.notOnOrAfter.ToString(SamlConstants.GeneratedDateTimeFormat, DateTimeFormatInfo.
InvariantInfo
));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (7)
392
DateTimeFormatInfo.
InvariantInfo
,
1805
attributeValue, DateTimeFormats.Accepted, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
1926
time, DateTimeFormats.Accepted, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
1933
time, DateTimeFormats.Accepted, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
1989
conditions.NotBefore.ToUniversalTime().ToString(DateTimeFormats.Generated, DateTimeFormatInfo.
InvariantInfo
));
1998
conditions.NotOnOrAfter.ToUniversalTime().ToString(DateTimeFormats.Generated, DateTimeFormatInfo.
InvariantInfo
));
2862
authInstance, DateTimeFormats.Accepted, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
System.Runtime.Serialization (1)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
694
this.value = dateTime.ToString("yyyy-MM-ddTHH:mm:ss.fffffffK", DateTimeFormatInfo.
InvariantInfo
);
System.ServiceModel (4)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
2617
if (DateTime.TryParse(value, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AllowWhiteSpaces | DateTimeStyles.AssumeLocal, out modifiedSinceDate))
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
1586
return ConvertDate(DateTime.Parse(dateStr, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.RoundtripKind));
System\ServiceModel\Security\WSTrust.cs (2)
384
WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
390
WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.None).ToUniversalTime();
System.ServiceModel.Web (2)
System\ServiceModel\Description\WebScriptClientGenerator.cs (2)
61
serviceLastModifiedRfc1123String = serviceLastModified.ToString("R", DateTimeFormatInfo.
InvariantInfo
);
116
if (DateTime.TryParse(ifModifiedSinceHeaderValue, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AdjustToUniversal, out ifModifiedSinceDateTime))
System.Web (4)
httpserverutility.cs (3)
1516
return dt.ToString("R", DateTimeFormatInfo.
InvariantInfo
);
1520
return dt.ToString("R", DateTimeFormatInfo.
InvariantInfo
);
1526
return dt.ToString("ddd, dd-MMM-yyyy HH':'mm':'ss 'GMT'", DateTimeFormatInfo.
InvariantInfo
);
Management\webeventbuffer.cs (1)
590
return t.ToString("T", DateTimeFormatInfo.
InvariantInfo
) + "." + t.Millisecond.ToString("d03", CultureInfo.InvariantCulture);
System.Xml (8)
System\Xml\Serialization\Xmlcustomformatter.cs (2)
344
return DateTime.ParseExact(value, allTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite | DateTimeStyles.NoCurrentDateDefault | DateTimeStyles.RoundtripKind);
348
return DateTime.ParseExact(value, allTimeFormats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite | DateTimeStyles.NoCurrentDateDefault);
System\Xml\XmlConvert.cs (6)
765
return value.ToString(format, DateTimeFormatInfo.
InvariantInfo
);
802
return value.ToString( format, DateTimeFormatInfo.
InvariantInfo
);
1250
return DateTime.ParseExact(s, format, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AllowLeadingWhite|DateTimeStyles.AllowTrailingWhite);
1258
return DateTime.ParseExact(s, formats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AllowLeadingWhite|DateTimeStyles.AllowTrailingWhite);
1304
return DateTimeOffset.ParseExact( s, format, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite );
1311
return DateTimeOffset.ParseExact( s, formats, DateTimeFormatInfo.
InvariantInfo
, DateTimeStyles.AllowLeadingWhite | DateTimeStyles.AllowTrailingWhite );