I get a Date in an ASP.NET Core Controller like this:
public class MyController:Controller{
public IActionResult Test(DateTime date) {
}
}
It is better to send your date from front to controller in the ISO format: "yyyy-MM-dd"
https://www.w3schools.com/js/js_date_formats.asp
Any server side with any culture will understand this date format correctly.
So, I'm using sending like this:
const dateStart = new Date();
$.post("localhost:4200/start", { dateStart: dateStart.toISOString() },
function(data) {
console.log("Started!");
});