Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • nant15

    nant15

    0 Points

    7 Posts

    Re: Silverlight Calendar doesn't display Thai Year correctly

    Mar 08, 2009 04:55 PM | LINK

    OK, I gave up and created my own calendar for Gregorian Calendar which supports Thai! You can find it here: http://coresharp.net/blogs/projects/archive/2009/03/08/silverlight.aspx

    I know that this problem will continue with future controls...until we finish debating whether Thai Calendar is gregorian calendar

    Anyway, while testing the control i found that Chinese, Japan, Taiwan calendars are all modeled as gregorian - which they have just switched from their traditional calendars to gregorian a while ago. More interesting case is Taiwan, where they have Gregorian as Main calendar and with Taiwan Calendar as optional calendar

    Seeing this, i would expect to see ThaiGrogorianCalendar which inherits from GregorianCalendar and MinSupportedDateTime is 1/1/1941 which is the date we decided to swtich to Gregorian Calendar and has ThaiBuddhismCalendar as the second optional calendar to handle the rest...

    And  I do everything Gregorian way just use DateTime.Format( "yyyy" ) to get my 2552 from 2009 [:P]