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?
How to set regional settings for my app?
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
#1 Posted by balexandre on 10 Jul, 2011 05:50 PM
That's plain old basic ASP.NET :o)
Just set the correct localization on
gloabal.asaxunderApplication_BeginRequestor by Page underPage_init()or even in yourweb.config.There are plenty tutorials on the web on how to do this.
#2 Posted by booyaa on 10 Jul, 2011 06:21 PM
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)
booyaa closed this discussion on 10 Jul, 2011 06:21 PM.