【发布时间】:2012-04-02 13:19:00
【问题描述】:
我在 QueryString 中有 startdate,值为:3/1/2012
DateTime.Parse(Request.QueryString["startdate"]).Month 返回月份数:1
但在我的控制器中,我有操作 Index(DateTime startDate) 和 startDate.Month 返回 3
有人可以解释为什么日期绑定不能按预期工作吗?
顺便说一句,我在 web.config 中已经有了文化:
<globalization uiCulture="en-GB" culture="en-GB"/>
【问题讨论】:
标签: asp.net asp.net-mvc data-binding