In my MVC core web application I dont see a datepicker on all browsers so I would like to use the jQuery datepicker.
Currently in my Model I have :
[Required]
[Display(Name = "RegisterDate")]
//[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd hh:mm:ss}")]
public override DateTime RegisterDate { get; set; }
In the .html file I have : (these are just some pieces of code)
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script>
...
<div class="form-group">
<label asp-for="RegisterDate" class="control-label"></label>
<input asp-for="RegisterDate" class="form-control" value="@DateTime.Now.ToString("yyyy-MM-ddThh:mm")" />
<span asp-validation-for="RegistertDate" class="text-danger"></span>
</div>
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.
Thanks in advance for the help.

