3 writes to ShortDatePattern
Microsoft.Data.Analysis.Tests (2)
DataFrame.IOTests.cs (2)
1095cultureInfo.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd"; 1124cultureInfo.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileSystem.vb (1)
45dfi.ShortDatePattern = "\#yyyy-MM-dd\#"
28 references to ShortDatePattern
Aspire.Dashboard (1)
Utils\FormatHelpers.cs (1)
40var key = new CultureDetailsKey(cultureInfo.DateTimeFormat.LongTimePattern, cultureInfo.DateTimeFormat.ShortDatePattern, cultureInfo.NumberFormat.NumberDecimalSeparator);
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));
PresentationFramework (2)
System\Windows\Controls\DatePicker.cs (2)
1001return d.ToString(dtfi.ShortDatePattern, dtfi); 1293this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString());
System.ComponentModel.TypeConverter (5)
System\ComponentModel\DateOnlyConverter.cs (1)
93return dateOnly.ToString(culture.DateTimeFormat.ShortDatePattern, culture);
System\ComponentModel\DateTimeConverter.cs (2)
110format = formatInfo!.ShortDatePattern; 114format = formatInfo!.ShortDatePattern + " " + formatInfo.ShortTimePattern;
System\ComponentModel\DateTimeOffsetConverter.cs (2)
120format = formatInfo!.ShortDatePattern + " zzz"; 126format = formatInfo!.ShortDatePattern + " " + formatInfo.ShortTimePattern + " zzz";
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
899'd' => dtfi.ShortDatePattern, // Short Date
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (5)
902internal string GeneralShortTimePattern => generalShortTimePattern ??= ShortDatePattern + " " + ShortTimePattern; 909internal string GeneralLongTimePattern => generalLongTimePattern ??= ShortDatePattern + " " + LongTimePattern; 963ShortDatePattern + " " + longTimePattern : 964ShortDatePattern + " " + longTimePattern + " zzz"; 1430private string[] AllShortDatePatterns => GetMergedPatterns(UnclonedShortDatePatterns, ShortDatePattern);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (9)
1606if (!GetYearMonthDayOrder(dtfi.ShortDatePattern, out int order)) 1608result.SetFailure(ParseFailureKind.Format_BadDatePattern, dtfi.ShortDatePattern); 1793if (!GetYearMonthDayOrder(dtfi.ShortDatePattern, out int order)) 1795result.SetFailure(ParseFailureKind.Format_BadDatePattern, dtfi.ShortDatePattern); 1861string pattern = dtfi.ShortDatePattern; 1896if (!GetYearMonthDayOrder(dtfi.ShortDatePattern, out int order)) 1898result.SetFailure(ParseFailureKind.Format_BadDatePattern, dtfi.ShortDatePattern); 2141if (!GetYearMonthDayOrder(dtfi.ShortDatePattern, out int order)) 2143result.SetFailure(ParseFailureKind.Format_BadDatePattern, dtfi.ShortDatePattern);
System.Windows.Forms.Tests (1)
System\Windows\Forms\DateTimePickerTests.cs (1)
974dateTimePicker.CustomFormat = dateTimeFormat.ShortDatePattern;