title: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value
body: <p>I have the following code in my HomeController:</p>
  
  <pre><code>public ActionResult Edit(int id)
  {
      var ArticleToEdit = (from m in _db.ArticleSet where m.storyId == id select m).First();
      return View(ArticleToEdit);
  }
  
  [ValidateInput(false)]
  [AcceptVerbs(HttpVerbs.Post)]
  public ActionResult Edit(Article ArticleToEdit)
  {
      var originalArticle = (from m in _db.ArticleSet where m.storyId == ArticleToEdit.storyId select m).First();
      if (!ModelState.IsValid)
          return View(originalArticle);
  
      _db.ApplyPropertyChanges(originalArticle.EntityKey.EntitySetName, ArticleToEdit);
      _db.SaveChanges();
      return RedirectToAction("Index");
  }
  </code></pre>
  
  <p>And this is the view for the Edit method:</p>
  
  <pre><code>&lt;% using (Html.BeginForm()) {%&gt;
  
      &lt;fieldset&gt;
          &lt;legend&gt;Fields&lt;/legend&gt;
          &lt;p&gt;
              &lt;label for="headline"&gt;Headline&lt;/label&gt;
              &lt;%= Html.TextBox("headline") %&gt;
          &lt;/p&gt;
          &lt;p&gt;
              &lt;label for="story"&gt;Story &lt;span&gt;( HTML Allowed )&lt;/span&gt;&lt;/label&gt;
              &lt;%= Html.TextArea("story") %&gt;
          &lt;/p&gt;
          &lt;p&gt;
              &lt;label for="image"&gt;Image URL&lt;/label&gt;
              &lt;%= Html.TextBox("image") %&gt;
          &lt;/p&gt;
          &lt;p&gt;
              &lt;input type="submit" value="Post" /&gt;
          &lt;/p&gt;
      &lt;/fieldset&gt;
  
  &lt;% } %&gt;
  </code></pre>
  
  <p>When I hit the submit button I get the error: <code>{"The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.\r\nThe statement has been terminated."}</code> Any ideas what the problem is? I'm assuming that the edit method is trying to update the posted value in the DB to the edited on but for some reason it's not liking it... Although I don't see why the date is involved as it's not mentioned in the controller method for edit?</p>