Months name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QUEyZTcyRQ==?=

    #1

    Months name

    Why does System.Globaliz ation.DateTimeF ormatInfo.Curre ntInfo.MonthNam es
    return 13 elements? Why does it not use the cuurent culture?
  • =?UTF-8?B?R8O2cmFuIEFuZGVyc3Nvbg==?=

    #2
    Re: Months name

    AA2e72E wrote:
    Why does System.Globaliz ation.DateTimeF ormatInfo.Curre ntInfo.MonthNam es
    return 13 elements? Why does it not use the cuurent culture?
    RTFM ;)

    DateTimeFormatI nfo.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
    _____
    Göran Anderssons privata hemsida.

    Comment

    • Ignacio Machin \( .NET/ C# MVP \)

      #3
      Re: Months name

      Hi,

      "AA2e72E" <AA2e72E@discus sions.microsoft .comwrote in message
      news:7C1864F4-1158-48B3-A42D-B244CD9A44D5@mi crosoft.com...
      Why does System.Globaliz ation.DateTimeF ormatInfo.Curre ntInfo.MonthNam es
      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?


      Comment

      • Mythran

        #4
        Re: Months name



        "Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
        message news:uQ1Tllz4HH A.5804@TK2MSFTN GP05.phx.gbl...
        Hi,
        >
        "AA2e72E" <AA2e72E@discus sions.microsoft .comwrote in message
        news:7C1864F4-1158-48B3-A42D-B244CD9A44D5@mi crosoft.com...
        >Why does System.Globaliz ation.DateTimeF ormatInfo.Curre ntInfo.MonthNam es
        >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


        Comment

        • Ignacio Machin \( .NET/ C# MVP \)

          #5
          Re: Months name

          Hi,

          "Mythran" <kip_potter@hot mail.comwrote in message
          news:O3V3fD04HH A.5164@TK2MSFTN GP05.phx.gbl...
          >
          >
          "Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
          message news:uQ1Tllz4HH A.5804@TK2MSFTN GP05.phx.gbl...
          >Hi,
          >>
          >"AA2e72E" <AA2e72E@discus sions.microsoft .comwrote in message
          >news:7C1864F 4-1158-48B3-A42D-B244CD9A44D5@mi crosoft.com...
          >>Why does System.Globaliz ation.DateTimeF ormatInfo.Curre ntInfo.MonthNam es
          >>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!


          Comment

          Working...