开发者

change asp.net mvc2 site culture (Model Validation Fails with Non-US Dates)

I have an asp.net mvc2 app that issue Validation errors on Europe style dates (dd/mm/yyyy)

I've found that the CurrentUICulture is en-us. how can I change it permanently and to all the app to be like in Europe (en-GB ?)

Do I need to change something on the 开发者_如何学GoDatabase as well (SQL server 2008, default installation).

(this issue is linked to ASP.NET MVC2 Model Validation Fails with Non-US Date Format question)

But I don't want to treat dates all over the app, rather having the app work entirely in the right culture.


Well, it looks like changing the server culture (in regional settings) solve it for me..But I still wonder if it is possible to solve this without changing the server's culture.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜