title: How to use datepicker on MVC Core in ASP form
body: <p>In my MVC core web application I dont see a datepicker on all browsers so I would like to use the jQuery datepicker.</p>
  
  <p>Currently in my Model I have : </p>
  
  <pre><code>    [Required]
      [Display(Name = "RegisterDate")]
      //[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd hh:mm:ss}")]
      public override DateTime RegisterDate { get; set; }
  </code></pre>
  
  <p>In the .html file I have : (these are just some pieces of code) </p>
  
  <pre><code>&lt;link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"&gt;
  &lt;link rel="stylesheet" href="/resources/demos/style.css"&gt;
  &lt;script src="https://code.jquery.com/jquery-1.12.4.js"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $( function() {
    $( "#datepicker" ).datepicker();
  } );
  &lt;/script&gt;
  ...
              &lt;div class="form-group"&gt;
              &lt;label asp-for="RegisterDate" class="control-label"&gt;&lt;/label&gt;
              &lt;input asp-for="RegisterDate" class="form-control" value="@DateTime.Now.ToString("yyyy-MM-ddThh:mm")" /&gt;
              &lt;span asp-validation-for="RegistertDate" class="text-danger"&gt;&lt;/span&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>My question is how do I get the jquery datepicker to work on this? 
  I do not want to download any NuGet packages because of some dependencies on the project.
  I prefer to work with CDN. </p>
  
  <p>Thanks in advance for the help.</p>