By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,483 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,483 IT Pros & Developers. It's quick & easy.

Months name

P: n/a
Why does System.Globalization.DateTimeFormatInfo.CurrentInf o.MonthNames
return 13 elements? Why does it not use the cuurent culture?
Aug 20 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
AA2e72E wrote:
Why does System.Globalization.DateTimeFormatInfo.CurrentInf o.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 "".
--
Göran Andersson
_____
http://www.guffa.com
Aug 20 '07 #2

P: n/a
Hi,

"AA2e72E" <AA*****@discussions.microsoft.comwrote in message
news:7C**********************************@microsof t.com...
Why does System.Globalization.DateTimeFormatInfo.CurrentInf o.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?
Aug 20 '07 #3

P: n/a


"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:uQ**************@TK2MSFTNGP05.phx.gbl...
Hi,

"AA2e72E" <AA*****@discussions.microsoft.comwrote in message
news:7C**********************************@microsof t.com...
>Why does System.Globalization.DateTimeFormatInfo.CurrentInf o.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?
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
Aug 20 '07 #4

P: n/a
Hi,

"Mythran" <ki********@hotmail.comwrote in message
news:O3**************@TK2MSFTNGP05.phx.gbl...
>

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:uQ**************@TK2MSFTNGP05.phx.gbl...
>Hi,

"AA2e72E" <AA*****@discussions.microsoft.comwrote in message
news:7C**********************************@microso ft.com...
>>Why does System.Globalization.DateTimeFormatInfo.CurrentInf o.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?

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!
Aug 20 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.