title: How to pre-populate a 'date' input field with Razor/C# values
body: <p>I have a 'date' type input, and I'm trying to get the Razor code to pre-fill the date with information that the server already has, because it's for an Edit field on an MVC ASP.NET Core app I'm working on. </p>
  
  <p>The code I'm using is:</p>
  
  <pre><code>&lt;input type="date" name="DeliveredDate" id="DeliveredDate" value='@Model["order"].DeliveredDate.ToString("mm/dd/yyyy")'&gt;
  </code></pre>
  
  <p>I can get the code to show the string in any other part of the page, but is there a trick to getting that same string to populate the value of a date field? All my googling hasn't turned up anything particularly helpful. </p>