Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

How to set regional settings for my app?

I've noticed that my date format is US style i.e. System.DateTime.Now.ToShortDateString() = 7/10/2011. Is there a way to set webserver instance to UK local i.e. 10/7/2011?

  1. That's plain old basic ASP.NET :o)

    Just set the correct localization on gloabal.asax under Application_BeginRequest or by Page under Page_init() or even in your web.config.

    There are plenty tutorials on the web on how to do this.

  2. Cheers for the pointer...

    stuck this in global.asax, push changes back to appharbor and it worked like a charm!

    void Application_BeginRequest(object sender, EventArgs e)

        {
            string Lang = "en-GB";
            System.Threading.Thread.CurrentThread.CurrentCulture =
               new System.Globalization.CultureInfo(Lang);
        }
    
  3. booyaa closed this discussion on 10 Jul, 2011 06:21 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac