阅读背景:

ASP。NET MVC:Html。行动/ Html。ActionLink和文化特定的日期时间

来源:互联网 

I've been fighting with culture specific DateTime in ASP.NET MVC for few days now, to no avail. The scenario is as follows: I have a list which I want to filter against DateTime submitted by user. Users should handle dates in a localized form, in my case culture and cultureUI is set to "da-DK", so date format is "dd-mm-yy". So far I've managed to make the form submit date in the required format, but Action and ActionLink methods generate URLs that interpret dates in en-US ("mm/dd/yy").I've been fighting with culture specific DateTi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: