Importance of Culture in ASP.Net application
September 6, 2007Just today I have realised the importance of “Culture” and “UICulture”. After an experience I would recommend others to also make use of this feature. The culture property can be set to the page, the application(web.config) and to all application running on the server (app.config) depending how one wants it.
I found it useful in setting my date format and applied to my applications web.config file as such
<globalization
requestEncoding=”utf-8″
responseEncoding=”utf-8″
culture=”en-GB”
uiCulture=”en-GB”
/>
In above date format is “dd/MM/yyy” as default and if I want to change the date format to MM/dd/yyyy the just change the Culture and UICulture to “en-US”. It as simple as this.
Posted by Vishal Reddy