Months name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why does System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames
return 13 elements? Why does it not use the cuurent culture?
 
AA2e72E said:
Why does System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames
return 13 elements? Why does it not use the cuurent culture?

RTFM ;)

DateTimeFormatInfo.MonthNames Property

Property Value
A one-dimensional array of type String containing the culture-specific
full names of the months. In a 12-month calendar, the 13th element of
the array is an empty string. The array for InvariantInfo contains
"January", "February", "March", "April", "May", "June", "July",
"August", "September", "October", "November", "December", and "".
 
Hi,

AA2e72E said:
Why does System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames
return 13 elements? Why does it not use the cuurent culture?

I do not know of any culture that has 13 months.

Now I do not know the rationale behind using a final empty value, somebody
has a clue?
 
Ignacio Machin ( .NET/ C# MVP ) said:
Hi,



I do not know of any culture that has 13 months.

Now I do not know the rationale behind using a final empty value, somebody
has a clue?

A calendar system that has 13 months is a "reformed" calendar that allows an
equal # of days spread across the 13 months (28 days x 13 months = 364
calendar days).

Checkout "Calendar reform" on wikipedia for a more in-depth explanation :)

HTH,
Mythran
 
Hi,

Mythran said:
A calendar system that has 13 months is a "reformed" calendar that allows
an equal # of days spread across the 13 months (28 days x 13 months = 364
calendar days).

Checkout "Calendar reform" on wikipedia for a more in-depth explanation :)

Thanks for the link!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top