Setting Culture for ASP.NET MVC application on VS dev server and IIS

后端 未结 4 1518
一整个雨季
一整个雨季 2020-11-30 00:41

This is more specific and cleaner version of this question - Different DateTimeFormat for dev and test environment

In the Application_BeginRequest()

4条回答
  •  误落风尘
    2020-11-30 00:55

    Rather than setting the Thread's culture, you can specify it in the web.config like so:

    
        
            
        
    
    

    That is a more "proper" way of specifying the culture in ASP.NET.

提交回复
热议问题