tags:

views:

45

answers:

2

According to MSDN in .Net DateTimeFormat.MonthName should contain exactly 13 elements with 12 element should be empty string. What this empty string is used for?

+3  A: 

For index 12. Indexes 0--11 are the actual months in, for example, the en-US culture (January, February, etc.). The issue is that some Calendars have thirteen months.

Jason
So is there a value indicating how much month there is in calendar?
Sergej Andrejev
Use `Calendar.GetMonthsInYear`. It's dependent on the year because in some cultures (e.g., `he-IL`) the number of months varies from year to year). For a specific example, see year 5763 in the Hebrew calendar.
Jason
A: 

Because in some cultures year consists of 13 months.

Alex Reitbort