From 543fce994cc2698e8571a254bf920677bf6b8729 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Sep 2025 18:24:10 +0000 Subject: [PATCH 1/4] Initial plan From fde907ab3dc644559d27265014bd04b71e1eb1b7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Sep 2025 18:29:06 +0000 Subject: [PATCH 2/4] Remove incorrect "unique" claim from ShortestDayNames documentation Co-authored-by: tarekgh <10833894+tarekgh@users.noreply.github.com> --- xml/System.Globalization/DateTimeFormatInfo.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Globalization/DateTimeFormatInfo.xml b/xml/System.Globalization/DateTimeFormatInfo.xml index 8e28b846859..a29464057ae 100644 --- a/xml/System.Globalization/DateTimeFormatInfo.xml +++ b/xml/System.Globalization/DateTimeFormatInfo.xml @@ -2828,7 +2828,7 @@ This property is affected if the value of the System.String[] - Gets or sets a string array of the shortest unique abbreviated day names associated with the current object. + Gets or sets a string array of the shortest abbreviated day names associated with the current object. A string array of day names. Date: Mon, 1 Sep 2025 18:32:34 +0000 Subject: [PATCH 3/4] Update ShortestDayNames example output to match current runtime behavior Co-authored-by: tarekgh <10833894+tarekgh@users.noreply.github.com> --- .../GetShortestDayName/dtfi1.cs | 16 ++++++++-------- .../GetShortestDayName/dtfi1.vb | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs b/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs index cd2bb103cce..f4b9fabfde9 100644 --- a/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs +++ b/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs @@ -103,16 +103,16 @@ This code example uses the en-US culture. "" ShortestDayNames... - "S" - "M" - "T" - "W" - "T" - "F" - "S" + "Su" + "Mo" + "Tu" + "We" + "Th" + "Fr" + "Sa" GetShortestDayName(DayOfWeek.Sunday)... - "S" + "Su" Initial DateTime format patterns for the 'd' format specifier... "M/d/yyyy" diff --git a/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb b/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb index 28a75d2346f..a7fd79594a1 100644 --- a/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb +++ b/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb @@ -97,16 +97,16 @@ Class Sample '"" ' 'ShortestDayNames... - '"S" - '"M" - '"T" - '"W" - '"T" - '"F" - '"S" + '"Su" + '"Mo" + '"Tu" + '"We" + '"Th" + '"Fr" + '"Sa" ' 'GetShortestDayName(DayOfWeek.Sunday)... - '"S" + '"Su" ' 'Initial DateTime format patterns for the 'd' format specifier... '"M/d/yyyy" From 804997dcca7f7bd0ca4caedd430f3032d4cf1d58 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Sep 2025 20:00:24 +0000 Subject: [PATCH 4/4] Revert sample code changes as requested by @tarekgh Co-authored-by: tarekgh <10833894+tarekgh@users.noreply.github.com> --- .../GetShortestDayName/dtfi1.cs | 16 ++++++++-------- .../GetShortestDayName/dtfi1.vb | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs b/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs index f4b9fabfde9..cd2bb103cce 100644 --- a/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs +++ b/snippets/csharp/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.cs @@ -103,16 +103,16 @@ This code example uses the en-US culture. "" ShortestDayNames... - "Su" - "Mo" - "Tu" - "We" - "Th" - "Fr" - "Sa" + "S" + "M" + "T" + "W" + "T" + "F" + "S" GetShortestDayName(DayOfWeek.Sunday)... - "Su" + "S" Initial DateTime format patterns for the 'd' format specifier... "M/d/yyyy" diff --git a/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb b/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb index a7fd79594a1..28a75d2346f 100644 --- a/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb +++ b/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/dtfi1.vb @@ -97,16 +97,16 @@ Class Sample '"" ' 'ShortestDayNames... - '"Su" - '"Mo" - '"Tu" - '"We" - '"Th" - '"Fr" - '"Sa" + '"S" + '"M" + '"T" + '"W" + '"T" + '"F" + '"S" ' 'GetShortestDayName(DayOfWeek.Sunday)... - '"Su" + '"S" ' 'Initial DateTime format patterns for the 'd' format specifier... '"M/d/yyyy"