Fix the docs of DateTimeFormatInfo DayNames and AbbreviatedDayNames remarks section

Open Beginner friendly
#3,737 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
csharp
Domain
documentation

Research direction

Locate the API reference documentation entries for DateTimeFormatInfo.DayNames and AbbreviatedDayNames and read their remarks sections. Update the inaccurate statement so it clarifies that the seven-element day-name array always starts with Sunday. Done means both remarks sections consistently describe the Sunday-first ordering.

Written by the indexing model from the issue text.

Description

area-System.Globalization doc-enhancement Pri3

The remarks section mentioning

If setting this property, the array must be one-dimensional and must have exactly seven elements. The first element (the element at index zero) represents the first day of the week in the calendar defined by the Calendar property.

which is not correct. We should clarify that the day names array always starts with Sunday.

Dominant language
C#
Stars
950
Forks
1.7k
Avg merge
3d 5h
Merged PRs (30d)
38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/dotnet-api-docs

All issues in dotnet/dotnet-api-docs

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.