title: Set default input value Datetime.Now on create view MVC ASP.NET Core 2?
body: <p>How can I set default value of input OpenDate is date and time of server.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
     &lt;label asp-for="OpenDate" class="control-label"&gt;Ngày đăng ký&lt;/label&gt;
     &lt;input asp-for="OpenDate" class="form-control" /&gt;
     &lt;span asp-validation-for="OpenDate" class="text-danger"&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>