47 references to GetInstance
System.Private.CoreLib (47)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (3)
449
if (!DateTimeParse.TryParse(s, DateTimeFormatInfo.
GetInstance
(provider), style, ref dtResult))
514
if (!DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.
GetInstance
(provider), style, ref dtResult))
560
DateTimeFormatInfo dtfi = DateTimeFormatInfo.
GetInstance
(provider);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (16)
1592
return DateTimeParse.Parse(s, DateTimeFormatInfo.
GetInstance
(provider), DateTimeStyles.None);
1599
return DateTimeParse.Parse(s, DateTimeFormatInfo.
GetInstance
(provider), styles);
1605
return DateTimeParse.Parse(s, DateTimeFormatInfo.
GetInstance
(provider), styles);
1616
return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.
GetInstance
(provider), DateTimeStyles.None);
1628
return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.
GetInstance
(provider), style);
1634
return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.
GetInstance
(provider), style);
1641
return DateTimeParse.ParseExactMultiple(s, formats, DateTimeFormatInfo.
GetInstance
(provider), style);
1647
return DateTimeParse.ParseExactMultiple(s, formats, DateTimeFormatInfo.
GetInstance
(provider), style);
1808
return DateTimeParse.TryParse(s, DateTimeFormatInfo.
GetInstance
(provider), styles, out result);
1814
return DateTimeParse.TryParse(s, DateTimeFormatInfo.
GetInstance
(provider), styles, out result);
1827
return DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.
GetInstance
(provider), style, out result);
1833
return DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.
GetInstance
(provider), style, out result);
1846
return DateTimeParse.TryParseExactMultiple(s, formats, DateTimeFormatInfo.
GetInstance
(provider), style, out result);
1852
return DateTimeParse.TryParseExactMultiple(s, formats, DateTimeFormatInfo.
GetInstance
(provider), style, out result);
1934
return DateTimeFormat.GetAllDateTimes(this, DateTimeFormatInfo.
GetInstance
(provider));
1950
return DateTimeFormat.GetAllDateTimes(this, format, DateTimeFormatInfo.
GetInstance
(provider));
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (12)
674
DateTimeFormatInfo.
GetInstance
(formatProvider),
683
DateTime dateResult = DateTimeParse.Parse(input, DateTimeFormatInfo.
GetInstance
(formatProvider), styles, out TimeSpan offset);
706
DateTimeFormatInfo.
GetInstance
(formatProvider),
715
DateTime dateResult = DateTimeParse.ParseExact(input, format, DateTimeFormatInfo.
GetInstance
(formatProvider), styles, out TimeSpan offset);
726
DateTimeFormatInfo.
GetInstance
(formatProvider),
735
DateTime dateResult = DateTimeParse.ParseExactMultiple(input, formats, DateTimeFormatInfo.
GetInstance
(formatProvider), styles, out TimeSpan offset);
841
DateTimeFormatInfo.
GetInstance
(formatProvider),
852
bool parsed = DateTimeParse.TryParse(input, DateTimeFormatInfo.
GetInstance
(formatProvider), styles, out DateTime dateResult, out TimeSpan offset);
869
DateTimeFormatInfo.
GetInstance
(formatProvider),
881
bool parsed = DateTimeParse.TryParseExact(input, format, DateTimeFormatInfo.
GetInstance
(formatProvider), styles, out DateTime dateResult, out TimeSpan offset);
898
DateTimeFormatInfo.
GetInstance
(formatProvider),
910
bool parsed = DateTimeParse.TryParseExactMultiple(input, formats, DateTimeFormatInfo.
GetInstance
(formatProvider), styles, out DateTime dateResult, out TimeSpan offset);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (8)
926
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
1005
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
1012
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
1019
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
1040
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
1096
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
1103
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
1110
dtfi = DateTimeFormatInfo.
GetInstance
(provider);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (4)
37
return FormatG(value, DateTimeFormatInfo.
GetInstance
(formatProvider), c == 'G' ? StandardFormat.G : StandardFormat.g);
44
FormatCustomized(value, format, DateTimeFormatInfo.
GetInstance
(formatProvider), ref vlb);
73
return TryFormatStandard(value, sf, DateTimeFormatInfo.
GetInstance
(formatProvider).DecimalSeparatorTChar<TChar>(), destination, out charsWritten);
78
FormatCustomized(value, format, DateTimeFormatInfo.
GetInstance
(formatProvider), ref vlb);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
705
raw.Init(DateTimeFormatInfo.
GetInstance
(formatProvider));
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (3)
619
if (!DateTimeParse.TryParse(s, DateTimeFormatInfo.
GetInstance
(provider), style, ref dtResult))
685
if (!DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.
GetInstance
(provider), style, ref dtResult))
730
DateTimeFormatInfo dtfi = DateTimeFormatInfo.
GetInstance
(provider);