I’m having the next issue:
<input type="hidden" value="@Model.EndDate" id="dateEnd" />
in the hidden input, I have a Date value from a Model this value is 2019/12/31
const endDate = new Date(document.querySelector("#dateEnd").value);
When I do this and do a "console.log", the console shows me "Invalid Date".
Any idea why this happens?