title: What determines the DateTime.Kind when ASP.Net receives a posted model with a DateTime property?
body: <p>We have a number of Vue pages, with Typescript models, that submit to the same controller action. The controller takes a single complex parameter, and the class features a DateTime property.</p>
  
  <p>The Vue pages have been modified over time and now look quite unlike each other. However, in all cases the DateTime property is taken from an inputDateOfBirth field and mapped with Moment. The code tends to look a bit like this:</p>
  
  <pre><code>var dob = Helpers.ToMoment(this.inputDateOfBirth);
  
  if (dob.isValid()) {
      this.dateOfBirth = dob.format("YYYY-MM-DD HH:mm:ss");
  }
  </code></pre>
  
  <p>Both <code>dateOfBirth</code> and <code>inputDateOfBirth</code> are listed as type <code>string</code> in the Typescript model.</p>
  
  <p>In most cases, the complex parameter that ends up being received by the controller action has this DateTime property as <code>DateTime.Kind</code> of <code>Utc</code>. One of them, however, has a <code>DateTime.Kind</code> of <code>Unspecified</code>. This causes issues further down the line.</p>
  
  <p>What determined the DateTime.Kind value of data interpreted by a C# controller action in ASP.NET MVC, and what can I do to ensure it's received consistently as Utc?</p>