-1

for example

var culc = new CultureInfo("ja");

culc.DateTimeFormat.AbbreviatedMonthNames

Will return string[13] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "" }

Is there a more elegant way of determining if currentculture has proper abberviated names or they just contain numbers, without having to just check the first element to determine if its a number or not

Zoinky
  • 4,083
  • 11
  • 40
  • 78

1 Answers1

0

Numbers are proper abbreviated month names for Japanese culture.

Wikipedia:

The modern Japanese names for the months literally translate to "first month", "second month", and so on. The corresponding number is combined with the suffix 月 (-gatsu, "month").

This is why culc.DateTimeFormat.MonthNames returns:

string[13] { "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", "" }

Then abbreviated version is without "月" suffix.

Other references:

madmir
  • 1
  • 1