Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Format
Message
From
30/03/2011 09:53:10
 
 
To
28/03/2011 15:26:37
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01505281
Message ID:
01505509
Views:
35
Hi, you can specify exactly to display as dd/mm/aaaa in your page, (load event)
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");  //dd/mm/aaaa
But if you want to do this for the entire app, you can do it in the web.config file:
"configuration>
"    system.web>
"       globalization 
"         requestEncoding="utf-8"
"          responseEncoding="utf-8"
"          culture="en-GB"
"          uiCulture="en-GB" />
"    /system.web>
" /configuration> 
the simbol ( " ) in the beginning of the lines must be changed by ( < )

>I've got an ASP.NET application which when I run on my PC (using the ASP.NET Development Server) it displays the dates according to >whatever Regional format I have set in control panel. At my client's site, they have IIS running on a Windows 2003 server. The server's >regional settings are to display short dates as dd/MM/yyyy, however, the dates in my application are all displaying as MM/dd/yyyy. Is
>there some setting in IIS or elsewhere that I need to change?
John Harold Belalcázar Lozano
Associate Director Of Development
http://www.belvicto.co/
jhbelalc@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform