Skip to content

Note about DateTimeFormatInfo.AbbreviatedMonthGenitiveNames usage is wrong for .NET Framework #48015

@cremor

Description

@cremor

Type of issue

Missing information

Description

The section "The "MMM" custom format specifier" contains the following information:

If there is a "d" or "dd" custom format specifier in the custom format string, it is retrieved from the DateTimeFormatInfo.AbbreviatedMonthGenitiveNames property instead.

It looks like this is only true for .NET 8/9.
.NET Framework 4.8 seems to not do this.
I haven't tested .NET 7 or older versions of .NET Core.

I assume the same is true for the similar note in the section "The "MMMM" custom format specifier", but I haven't tested this.

That notes were added in #40823 by @geniuszxy, although those specific changes were suggested by @tarekgh

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/base-types/custom-date-and-time-format-strings.md

Document Version Independent Id

96abc7c4-3719-82da-e271-881d62f0640f

Platform Id

58fb1aa0-4c4c-dd6c-590b-194d21204c54

Article author

@adegeo

Metadata

  • ID: dda93f14-f1b5-fde6-e441-302cdac261ab
  • PlatformId: 58fb1aa0-4c4c-dd6c-590b-194d21204c54
  • Service: dotnet-fundamentals

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions