Skip to content

DateTimeFormatInfo.ShortestDayNames does not return "unique" abbreviated day names. #11752

@DarkFormat

Description

@DarkFormat

Type of issue

Other (describe below)

Description

The Example in https://learn.microsoft.com/en-us/dotnet/api/system.globalization.datetimeformatinfo.shortestdaynames?view=net-9.0#examples showcases the issue outlined in the title.

Particularly:

/*
[...]

ShortestDayNames...
"S"
"M"
"T"
"W"
"T"
"F"
"S"

*/

If the property ShortestDayNames on DateTimeFormatInfo did return unique abbreviated day names, I'd expect something like:

[ "Su", "M", "Tu", "W", "Th", "F", "Sa" ]

I'm unsure if this is a documentation issue, an example issue or an actual implementation issue.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.globalization.datetimeformatinfo.shortestdaynames?view=net-9.0#system-globalization-datetimeformatinfo-shortestdaynames

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Globalization/DateTimeFormatInfo.xml

Document Version Independent Id

ac70c383-1491-4dd4-b578-e74874a8de18

Platform Id

05b22cad-3ee9-7f84-35c9-539841b564bc

Article author

@dotnet-bot

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions