Date Setting to 01/01/0001 00:00:00 in MVC 3.0 Web Application after submit button click
问题 I have a designed a form for my MVC Web application with which the user can enter details . One of the details is Date which he /she can choose from a DateTime Picker. After entering all the details including Date , I submit the form but instead of going to the next page, the same form reloads with a Validation Error on Date Field and setting 01/01/0001 00:00:00 as the Date. What is the solution ? I have declared my datetime variable like this - [Required] [DisplayFormat(DataFormatString = "