阅读背景:

如何在.NET MVC3 HTML表单中允许所需的可为空的DateTime中使用null值?

来源:互联网 

I have tried:

我努力了:

[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}", ConvertEmptyStringToNull = true)]
[Required(AllowEmptyStrings = true)]
public DateTime? BirthDateFrom { get; set; }
[DisplayFormat(ApplyFor



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

分享到: