title: Force ASP Core to display Model properties and not Form Data
body: <p>Assume a simple model:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class PostViewModel
  {
      [DataType(DataType.Date)] public DateTime Start { get; set; }
      [DataType(DataType.Date)] public DateTime End { get; set; }
  }
  </code></pre>
  
  <p>and a GET and a POST action:</p>
  
  <pre class="lang-cs prettyprint-override"><code>[HttpGet]
  public IActionResult Edit(PostViewModel viewModel)
  {
      return View(viewModel);
  }
  
  [HttpPost]
  [ActionName(nameof(Edit))]
  public IActionResult EditPost(PostViewModel viewModel)
  {
      viewModel.Start = DateTime.Today;
      viewModel.End = DateTime.Today.AddDays(7);
      return View(viewModel);
  }
  </code></pre>
  
  <p>The response of the post always returns the posted values and not the ones manually set by me:</p>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/G4LTL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G4LTL.png" alt="Edit View of PostViewModel"></a></p>
  
  <p><strong>How to fix this behavior?</strong></p>