5 instantiations of DateTimeFormatInfo
mscorlib (2)
system\globalization\cultureinfo.cs (1)
1448
DateTimeFormatInfo temp = new
DateTimeFormatInfo
(
system\globalization\datetimeformatinfo.cs (1)
504
DateTimeFormatInfo info = new
DateTimeFormatInfo
();
System (1)
net\System\Net\Internal.cs (1)
1988
DateTimeFormatInfo dateFormat = new
DateTimeFormatInfo
();
WindowsBase (2)
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (2)
357
DateTimeFormatInfo formatter = new
DateTimeFormatInfo
();
375
DateTimeFormatInfo formatter = new
DateTimeFormatInfo
();
291 references to DateTimeFormatInfo
mscorlib (167)
system\datetime.cs (26)
1294
return (DateTimeParse.Parse(s,
DateTimeFormatInfo
.CurrentInfo, DateTimeStyles.None));
1302
return (DateTimeParse.Parse(s,
DateTimeFormatInfo
.GetInstance(provider), DateTimeStyles.None));
1306
DateTimeFormatInfo
.ValidateStyles(styles, "styles");
1307
return (DateTimeParse.Parse(s,
DateTimeFormatInfo
.GetInstance(provider), styles));
1315
return (DateTimeParse.ParseExact(s, format,
DateTimeFormatInfo
.GetInstance(provider), DateTimeStyles.None));
1323
DateTimeFormatInfo
.ValidateStyles(style, "style");
1324
return (DateTimeParse.ParseExact(s, format,
DateTimeFormatInfo
.GetInstance(provider), style));
1328
DateTimeFormatInfo
.ValidateStyles(style, "style");
1329
return DateTimeParse.ParseExactMultiple(s, formats,
DateTimeFormatInfo
.GetInstance(provider), style);
1424
return DateTimeFormat.Format(this, "D",
DateTimeFormatInfo
.CurrentInfo);
1429
return DateTimeFormat.Format(this, "T",
DateTimeFormatInfo
.CurrentInfo);
1434
return DateTimeFormat.Format(this, "d",
DateTimeFormatInfo
.CurrentInfo);
1439
return DateTimeFormat.Format(this, "t",
DateTimeFormatInfo
.CurrentInfo);
1444
return DateTimeFormat.Format(this, null,
DateTimeFormatInfo
.CurrentInfo);
1449
return DateTimeFormat.Format(this, format,
DateTimeFormatInfo
.CurrentInfo);
1454
return DateTimeFormat.Format(this, null,
DateTimeFormatInfo
.GetInstance(provider));
1459
return DateTimeFormat.Format(this, format,
DateTimeFormatInfo
.GetInstance(provider));
1467
return DateTimeParse.TryParse(s,
DateTimeFormatInfo
.CurrentInfo, DateTimeStyles.None, out result);
1471
DateTimeFormatInfo
.ValidateStyles(styles, "styles");
1472
return DateTimeParse.TryParse(s,
DateTimeFormatInfo
.GetInstance(provider), styles, out result);
1476
DateTimeFormatInfo
.ValidateStyles(style, "style");
1477
return DateTimeParse.TryParseExact(s, format,
DateTimeFormatInfo
.GetInstance(provider), style, out result);
1481
DateTimeFormatInfo
.ValidateStyles(style, "style");
1482
return DateTimeParse.TryParseExactMultiple(s, formats,
DateTimeFormatInfo
.GetInstance(provider), style, out result);
1547
return (DateTimeFormat.GetAllDateTimes(this,
DateTimeFormatInfo
.GetInstance(provider)));
1566
return (DateTimeFormat.GetAllDateTimes(this, format,
DateTimeFormatInfo
.GetInstance(provider)));
system\datetimeoffset.cs (13)
595
DateTimeFormatInfo
.CurrentInfo,
613
DateTimeFormatInfo
.GetInstance(formatProvider),
636
DateTimeFormatInfo
.GetInstance(formatProvider),
647
DateTimeFormatInfo
.GetInstance(formatProvider),
705
return DateTimeFormat.Format(ClockDateTime, null,
DateTimeFormatInfo
.CurrentInfo, Offset);
710
return DateTimeFormat.Format(ClockDateTime, format,
DateTimeFormatInfo
.CurrentInfo, Offset);
715
return DateTimeFormat.Format(ClockDateTime, null,
DateTimeFormatInfo
.GetInstance(formatProvider), Offset);
720
return DateTimeFormat.Format(ClockDateTime, format,
DateTimeFormatInfo
.GetInstance(formatProvider), Offset);
731
DateTimeFormatInfo
.CurrentInfo,
744
DateTimeFormatInfo
.GetInstance(formatProvider),
759
DateTimeFormatInfo
.GetInstance(formatProvider),
774
DateTimeFormatInfo
.GetInstance(formatProvider),
811
if ((style &
DateTimeFormatInfo
.InvalidDateTimeStyles) != 0) {
system\globalization\cultureinfo.cs (9)
77
internal
DateTimeFormatInfo
dateTimeInfo;
1369
if (formatType == typeof(
DateTimeFormatInfo
)) {
1442
public virtual
DateTimeFormatInfo
DateTimeFormat {
1444
Contract.Ensures(Contract.Result<
DateTimeFormatInfo
>() != null);
1448
DateTimeFormatInfo
temp = new DateTimeFormatInfo(
1631
ci.dateTimeInfo = (
DateTimeFormatInfo
)this.dateTimeInfo.Clone();
1641
ci.DateTimeFormat = (
DateTimeFormatInfo
)this.DateTimeFormat.Clone();
1677
newInfo.dateTimeInfo =
DateTimeFormatInfo
.ReadOnly(ci.dateTimeInfo);
1684
newInfo.DateTimeFormat =
DateTimeFormatInfo
.ReadOnly(ci.DateTimeFormat);
system\globalization\datetimeformat.cs (17)
145
internal static readonly
DateTimeFormatInfo
InvariantFormatInfo = CultureInfo.InvariantCulture.DateTimeFormat;
225
private static String FormatDayOfWeek(int dayOfWeek, int repeat,
DateTimeFormatInfo
dtfi)
237
private static String FormatMonth(int month, int repeatCount,
DateTimeFormatInfo
dtfi)
278
private static String FormatHebrewMonthName(DateTime time, int month, int repeatCount,
DateTimeFormatInfo
dtfi)
434
private static String FormatCustomized(DateTime dateTime, String format,
DateTimeFormatInfo
dtfi, TimeSpan offset) {
616
result.Append(
DateTimeFormatInfo
.JapaneseEraStart[0]);
804
internal static String GetRealFormat(String format,
DateTimeFormatInfo
dtfi)
871
private static String ExpandPredefinedFormat(String format, ref DateTime dateTime, ref
DateTimeFormatInfo
dtfi, ref TimeSpan offset) {
874
dtfi =
DateTimeFormatInfo
.InvariantInfo;
885
dtfi =
DateTimeFormatInfo
.InvariantInfo;
896
dtfi = (
DateTimeFormatInfo
)dtfi.Clone();
907
internal static String Format(DateTime dateTime, String format,
DateTimeFormatInfo
dtfi) {
912
internal static String Format(DateTime dateTime, String format,
DateTimeFormatInfo
dtfi, TimeSpan offset)
940
dtfi =
DateTimeFormatInfo
.InvariantInfo;
982
internal static StringBuilder FastFormatRfc1123(DateTime dateTime, TimeSpan offset,
DateTimeFormatInfo
dtfi)
1067
internal static String[] GetAllDateTimes(DateTime dateTime, char format,
DateTimeFormatInfo
dtfi)
1122
internal static String[] GetAllDateTimes(DateTime dateTime,
DateTimeFormatInfo
dtfi)
system\globalization\datetimeformatinfo.cs (29)
71
private static volatile
DateTimeFormatInfo
invariantInfo;
499
public static
DateTimeFormatInfo
InvariantInfo {
501
Contract.Ensures(Contract.Result<
DateTimeFormatInfo
>() != null);
504
DateTimeFormatInfo
info = new DateTimeFormatInfo();
516
public static
DateTimeFormatInfo
CurrentInfo {
518
Contract.Ensures(Contract.Result<
DateTimeFormatInfo
>() != null);
521
DateTimeFormatInfo
info = culture.dateTimeInfo;
526
return (
DateTimeFormatInfo
)culture.GetFormat(typeof(
DateTimeFormatInfo
));
531
public static
DateTimeFormatInfo
GetInstance(IFormatProvider provider) {
533
DateTimeFormatInfo
info;
540
info = provider as
DateTimeFormatInfo
;
546
info = provider.GetFormat(typeof(
DateTimeFormatInfo
)) as
DateTimeFormatInfo
;
558
return (formatType == typeof(
DateTimeFormatInfo
)? this: null);
564
DateTimeFormatInfo
n = (
DateTimeFormatInfo
)MemberwiseClone();
1988
public static
DateTimeFormatInfo
ReadOnly(
DateTimeFormatInfo
dtfi) {
1997
DateTimeFormatInfo
newInfo = (
DateTimeFormatInfo
)(dtfi.MemberwiseClone());
2376
private static volatile
DateTimeFormatInfo
s_jajpDTFI;
2377
private static volatile
DateTimeFormatInfo
s_zhtwDTFI;
2385
internal static
DateTimeFormatInfo
GetJapaneseCalendarDTFI() {
2386
DateTimeFormatInfo
temp = s_jajpDTFI;
2402
internal static
DateTimeFormatInfo
GetTaiwanCalendarDTFI() {
2403
DateTimeFormatInfo
temp = s_zhtwDTFI;
2600
DateTimeFormatInfo
jaDtfi = GetJapaneseCalendarDTFI();
2611
DateTimeFormatInfo
twDtfi = GetTaiwanCalendarDTFI();
system\globalization\datetimeformatinfoscanner.cs (1)
501
internal String[] GetDateWordsOfDTFI(
DateTimeFormatInfo
dtfi) {
system\globalization\datetimeparse.cs (61)
50
internal static DateTime ParseExact(String s, String format,
DateTimeFormatInfo
dtfi, DateTimeStyles style) {
61
internal static DateTime ParseExact(String s, String format,
DateTimeFormatInfo
dtfi, DateTimeStyles style, out TimeSpan offset) {
75
internal static bool TryParseExact(String s, String format,
DateTimeFormatInfo
dtfi, DateTimeStyles style, out DateTime result) {
86
internal static bool TryParseExact(String s, String format,
DateTimeFormatInfo
dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset) {
100
internal static bool TryParseExact(String s, String format,
DateTimeFormatInfo
dtfi, DateTimeStyles style, ref DateTimeResult result) {
125
DateTimeFormatInfo
dtfi, DateTimeStyles style) {
138
DateTimeFormatInfo
dtfi, DateTimeStyles style, out TimeSpan offset) {
153
DateTimeFormatInfo
dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset) {
169
DateTimeFormatInfo
dtfi, DateTimeStyles style, out DateTime result) {
181
DateTimeFormatInfo
dtfi, DateTimeStyles style, ref DateTimeResult result) {
600
private static Boolean Lex(DS dps, ref __DTString str, ref DateTimeToken dtok, ref DateTimeRawInfo raw, ref DateTimeResult result, ref
DateTimeFormatInfo
dtfi, DateTimeStyles styles)
1025
dtfi =
DateTimeFormatInfo
.GetJapaneseCalendarDTFI();
1038
dtfi =
DateTimeFormatInfo
.GetTaiwanCalendarDTFI();
1200
private static Boolean GetYearMonthDayOrder(String datePattern,
DateTimeFormatInfo
dtfi, out int order)
1299
private static Boolean GetYearMonthOrder(String pattern,
DateTimeFormatInfo
dtfi, out int order)
1365
private static Boolean GetMonthDayOrder(String pattern,
DateTimeFormatInfo
dtfi, out int order)
1491
private static Boolean GetDayOfNN(ref DateTimeResult result, ref DateTimeStyles styles, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi) {
1530
private static Boolean GetDayOfNNN(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
1578
private static Boolean GetDayOfMN(ref DateTimeResult result, ref DateTimeStyles styles, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi) {
1634
private static Boolean GetHebrewDayOfNM(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
1654
private static Boolean GetDayOfNM(ref DateTimeResult result, ref DateTimeStyles styles, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
1703
private static Boolean GetDayOfMNN(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
1771
private static Boolean GetDayOfYNN(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi) {
1801
private static Boolean GetDayOfNNY(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi) {
1834
private static Boolean GetDayOfYMN(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi) {
1850
private static Boolean GetDayOfYN(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
1867
private static Boolean GetDayOfYM(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
1884
private static void AdjustTimeMark(
DateTimeFormatInfo
dtfi, ref DateTimeRawInfo raw) {
1927
private static Boolean GetTimeOfN(
DateTimeFormatInfo
dtfi, ref DateTimeResult result, ref DateTimeRawInfo raw)
1947
private static Boolean GetTimeOfNN(
DateTimeFormatInfo
dtfi, ref DateTimeResult result, ref DateTimeRawInfo raw)
1962
private static Boolean GetTimeOfNNN(
DateTimeFormatInfo
dtfi, ref DateTimeResult result, ref DateTimeRawInfo raw)
2015
private static Boolean GetDateOfNNDS(ref DateTimeResult result, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
2115
internal static Boolean ProcessHebrewTerminalState(DS dps, ref DateTimeResult result, ref DateTimeStyles styles, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi) {
2196
internal static Boolean ProcessTerminaltState(DS dps, ref DateTimeResult result, ref DateTimeStyles styles, ref DateTimeRawInfo raw,
DateTimeFormatInfo
dtfi)
2275
internal static DateTime Parse(String s,
DateTimeFormatInfo
dtfi, DateTimeStyles styles) {
2286
internal static DateTime Parse(String s,
DateTimeFormatInfo
dtfi, DateTimeStyles styles, out TimeSpan offset) {
2300
internal static bool TryParse(String s,
DateTimeFormatInfo
dtfi, DateTimeStyles styles, out DateTime result) {
2311
internal static bool TryParse(String s,
DateTimeFormatInfo
dtfi, DateTimeStyles styles, out DateTime result, out TimeSpan offset) {
2330
internal static bool TryParse(String s,
DateTimeFormatInfo
dtfi, DateTimeStyles styles, ref DateTimeResult result) {
3044
private static bool MatchAbbreviatedMonthName(ref __DTString str,
DateTimeFormatInfo
dtfi, ref int result) {
3096
private static bool MatchMonthName(ref __DTString str,
DateTimeFormatInfo
dtfi, ref int result) {
3160
private static bool MatchAbbreviatedDayName(ref __DTString str,
DateTimeFormatInfo
dtfi, ref int result) {
3192
private static bool MatchDayName(ref __DTString str,
DateTimeFormatInfo
dtfi, ref int result) {
3225
private static bool MatchEraName(ref __DTString str,
DateTimeFormatInfo
dtfi, ref int result) {
3257
private static bool MatchTimeMark(ref __DTString str,
DateTimeFormatInfo
dtfi, ref TM result) {
3303
private static bool MatchAbbreviatedTimeMark(ref __DTString str,
DateTimeFormatInfo
dtfi, ref TM result) {
3447
private static String ExpandPredefinedFormat(String format, ref
DateTimeFormatInfo
dtfi, ref ParsingInfo parseInfo, ref DateTimeResult result) {
3456
dtfi =
DateTimeFormatInfo
.InvariantInfo;
3461
dtfi =
DateTimeFormatInfo
.InvariantInfo;
3468
dtfi =
DateTimeFormatInfo
.InvariantInfo;
3473
dtfi =
DateTimeFormatInfo
.InvariantInfo;
3485
dtfi = (
DateTimeFormatInfo
)dtfi.Clone();
3498
private static bool ParseJapaneseEraStart(ref __DTString str,
DateTimeFormatInfo
dtfi)
3506
if (str.m_current !=
DateTimeFormatInfo
.JapaneseEraStart[0])
3521
DateTimeFormatInfo
dtfi,
4011
DateTimeFormatInfo
dtfi,
4236
internal static void DTFITrace(
DateTimeFormatInfo
dtfi) {
4365
internal __DTString(String str,
DateTimeFormatInfo
dtfi, bool checkDigitToken) : this (str, dtfi)
4370
internal __DTString(String str,
DateTimeFormatInfo
dtfi)
4429
internal void GetRegularToken(out TokenType tokenType, out int tokenValue,
DateTimeFormatInfo
dtfi) {
4509
internal TokenType GetSeparatorToken(
DateTimeFormatInfo
dtfi, out int indexBeforeSeparator, out char charBeforeSeparator) {
system\globalization\timespanformat.cs (4)
47
DateTimeFormatInfo
dtfi =
DateTimeFormatInfo
.GetInstance(formatProvider);
63
return FormatCustomized(value, format,
DateTimeFormatInfo
.GetInstance(formatProvider));
146
internal static String FormatCustomized(TimeSpan value, String format,
DateTimeFormatInfo
dtfi) {
system\globalization\timespanparse.cs (2)
386
internal void Init(
DateTimeFormatInfo
dtfi) {
654
raw.Init(
DateTimeFormatInfo
.GetInstance(formatProvider));
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)) {
PresentationFramework (12)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
532
DateTimeFormatInfo
format = DateTimeHelper.GetCurrentDateFormat();
src\Framework\System\Windows\Controls\DatePicker.cs (2)
992
DateTimeFormatInfo
dtfi = DateTimeHelper.GetDateFormat(DateTimeHelper.GetCulture(this));
1274
DateTimeFormatInfo
dtfi = DateTimeHelper.GetDateFormat(DateTimeHelper.GetCulture(this));
src\Framework\System\Windows\Controls\DateTimeHelper.cs (9)
105
public static
DateTimeFormatInfo
GetCurrentDateFormat()
125
internal static
DateTimeFormatInfo
GetDateFormat(CultureInfo culture)
134
DateTimeFormatInfo
dtfi = null;
196
DateTimeFormatInfo
format = GetDateFormat(culture);
210
DateTimeFormatInfo
format = DateTimeHelper.GetDateFormat(DateTimeHelper.GetCulture(fe));
226
DateTimeFormatInfo
format = GetDateFormat(culture);
239
DateTimeFormatInfo
format = GetDateFormat(culture);
252
DateTimeFormatInfo
format = GetDateFormat(culture);
269
DateTimeFormatInfo
format = GetDateFormat(culture);
System (13)
compmod\system\componentmodel\DateTimeConverter.cs (6)
65
DateTimeFormatInfo
formatInfo = null;
68
formatInfo = (
DateTimeFormatInfo
)culture.GetFormat(typeof(
DateTimeFormatInfo
));
102
DateTimeFormatInfo
formatInfo = null;
103
formatInfo = (
DateTimeFormatInfo
)culture.GetFormat(typeof(
DateTimeFormatInfo
));
compmod\system\componentmodel\DateTimeOffsetConverter.cs (6)
69
DateTimeFormatInfo
formatInfo = null;
72
formatInfo = (
DateTimeFormatInfo
)culture.GetFormat(typeof(
DateTimeFormatInfo
));
108
DateTimeFormatInfo
formatInfo = null;
109
formatInfo = (
DateTimeFormatInfo
)culture.GetFormat(typeof(
DateTimeFormatInfo
));
net\System\Net\Internal.cs (1)
1988
DateTimeFormatInfo
dateFormat = new DateTimeFormatInfo();
System.Data (7)
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);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (3)
356
DateTimeFormatInfo
dtfi = (
DateTimeFormatInfo
)(Thread.CurrentThread.CurrentCulture.GetFormat(typeof(
DateTimeFormatInfo
)));
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 (2)
System\Runtime\Serialization\DateTimeFormat.cs (1)
25
public DateTimeFormat(string formatString) : this(formatString,
DateTimeFormatInfo
.CurrentInfo)
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 (18)
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);
UI\WebControls\basecomparevalidator.cs (6)
145
DateTimeFormatInfo
info =
DateTimeFormatInfo
.CurrentInfo;
175
return
DateTimeFormatInfo
.CurrentInfo.Calendar.TwoDigitYearMax;
185
return
DateTimeFormatInfo
.CurrentInfo.Calendar.ToFourDigitYear(shortYear);
231
if (!(
DateTimeFormatInfo
.CurrentInfo.Calendar.GetType() == typeof(GregorianCalendar))) {
454
if (Type == ValidationDataType.Date &&
DateTimeFormatInfo
.CurrentInfo.Calendar.GetType() != typeof(GregorianCalendar)) {
UI\WebControls\Calendar.cs (8)
988
return
DateTimeFormatInfo
.CurrentInfo.GetMonthName(m);
991
return
DateTimeFormatInfo
.CurrentInfo.GetAbbreviatedMonthName(m);
1101
? (int)
DateTimeFormatInfo
.CurrentInfo.FirstDayOfWeek
1177
VisibleDate =
DateTimeFormatInfo
.CurrentInfo.Calendar.AddDays(VisibleDate, 1);
1224
threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
1361
DateTimeFormatInfo
dtf =
DateTimeFormatInfo
.CurrentInfo;
1751
string titlePattern =
DateTimeFormatInfo
.CurrentInfo.YearMonthPattern;
System.Web.Extensions (1)
Globalization\ClientCultureInfo.cs (1)
27
public
DateTimeFormatInfo
dateTimeFormat;
System.Web.Mobile (39)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (13)
285
DateTimeFormatInfo
currentInfo =
DateTimeFormatInfo
.CurrentInfo;
342
DateTimeFormatInfo
currentDateTimeInfo =
DateTimeFormatInfo
.CurrentInfo;
607
DateTimeFormatInfo
currentInfo =
DateTimeFormatInfo
.CurrentInfo;
718
return
DateTimeFormatInfo
.CurrentInfo.GetAbbreviatedDayName(
726
if (
DateTimeFormatInfo
.CurrentInfo.Calendar.GetType() ==
743
DateTimeFormatInfo
.CurrentInfo.ShortDatePattern;
814
? (int)
DateTimeFormatInfo
.CurrentInfo.FirstDayOfWeek
843
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
889
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
911
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (13)
268
DateTimeFormatInfo
currentInfo =
DateTimeFormatInfo
.CurrentInfo;
325
DateTimeFormatInfo
currentDateTimeInfo =
DateTimeFormatInfo
.CurrentInfo;
584
DateTimeFormatInfo
currentInfo =
DateTimeFormatInfo
.CurrentInfo;
695
return
DateTimeFormatInfo
.CurrentInfo.GetAbbreviatedDayName(
703
if (
DateTimeFormatInfo
.CurrentInfo.Calendar.GetType() ==
720
DateTimeFormatInfo
.CurrentInfo.ShortDatePattern;
791
? (int)
DateTimeFormatInfo
.CurrentInfo.FirstDayOfWeek
815
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
861
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
883
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (13)
244
DateTimeFormatInfo
currentInfo =
DateTimeFormatInfo
.CurrentInfo;
293
DateTimeFormatInfo
currentDateTimeInfo =
DateTimeFormatInfo
.CurrentInfo;
540
DateTimeFormatInfo
currentInfo =
DateTimeFormatInfo
.CurrentInfo;
640
return
DateTimeFormatInfo
.CurrentInfo.GetAbbreviatedDayName(
647
if (
DateTimeFormatInfo
.CurrentInfo.Calendar.GetType() ==
661
DateTimeFormatInfo
.CurrentInfo.ShortDatePattern;
723
? (int)
DateTimeFormatInfo
.CurrentInfo.FirstDayOfWeek
749
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
789
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
808
_threadCalendar =
DateTimeFormatInfo
.CurrentInfo.Calendar;
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 );
WindowsBase (2)
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (2)
357
DateTimeFormatInfo
formatter = new DateTimeFormatInfo();
375
DateTimeFormatInfo
formatter = new DateTimeFormatInfo();