标签: asp.net .net
我在代码编写过程中遇到DateTime问题:year由6位数字组成。 有人可以告诉我这个事实的原因吗?
[Required] [DisplayName("Date of birth")] [DataType(DataType.Date)] [CustomDateAttribute(ErrorMessage ="Incorrect date range")] public DateTime DateOfBirth { get; set; }
enter image description here