Date and Calendar Format RRS feed

  • Question

  • User1362338954 posted

    I am running off a server in Europe.  The Club Web Site was loaded by them.  I am updating as neeeded.

    The date format and Calendar language are not English - American.  What property and where do I set the desire format

    Wednesday, January 4, 2006 4:50 PM

All replies

  • User1362338954 posted

    Found my own solution

    FYI, added this line to a page load event on each page with a date (had to create some events)

          Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

    I also added the follow above the script tag

    <%@ Import Namespace="System.Globalization" %>
    @ Import Namespace="System.Threading" %>

    I did find it interesting that I use IMPORT even thought the code is in C#


    Thursday, January 5, 2006 4:55 PM
  • User-1653776603 posted
    In the gloablization tag of web.config, you should just be able to set the culture property. That will then change the date format etc for the calendar.
    Friday, January 6, 2006 5:49 PM