Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

Months name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AA2e72E - 20 Aug 2007 14:34 GMT
Why does System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames
return 13 elements? Why does it not use the cuurent culture?
Göran Andersson - 20 Aug 2007 14:48 GMT
> 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 "".

Signature

Göran Andersson
_____
http://www.guffa.com

Ignacio Machin ( .NET/ C# MVP ) - 20 Aug 2007 15:50 GMT
Hi,

> 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?
Mythran - 20 Aug 2007 16:43 GMT
> Hi,
>
[quoted text clipped - 5 lines]
> 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
Ignacio Machin ( .NET/ C# MVP ) - 20 Aug 2007 19:23 GMT
Hi,

>> Hi,
>>
[quoted text clipped - 11 lines]
>
> Checkout "Calendar reform" on wikipedia for a more in-depth explanation :)

Thanks for the link!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.