with asp.net, how can pass javascript date into input with type datetime.
input tag:
<input asp-for="EndingDate" id="enddate" class="form-control input-sm" />
and the attempt to send javascript date to the input value:
const d = new Date("2015-03-25");
$('#enddate').val(d.toJSON());