title: ASP.NET MVC3 - DateTime format
body: <p>I'm using ASP.NET MVC 3.<br>
  My ViewModel looks like this:</p>
  
  <pre><code>public class Foo
  {
      [DataType(DataType.Date)]
      [DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}", ApplyFormatInEditMode = true)]
      public DateTime StartDate { get; set; }
      ...
  }
  </code></pre>
  
  <p>In view, I have something like this:</p>
  
  <pre><code>&lt;div class="editor-field"&gt;
      @Html.EditorFor(model =&gt; model.StartDate)
      &lt;br /&gt;
      @Html.ValidationMessageFor(model =&gt; model.StartDate)
  &lt;/div&gt;
  </code></pre>
  
  <p>StartDate is displayed in correct format, but when I change it's value to 19.11.2011 and submit the form, I get the following error message: "The value '19.11.2011' is not valid for StartDate."</p>
  
  <p>Any help would be greatly appreciated!</p>