I get a Date in an ASP.NET Core Controller like this:
public class MyController:Controller{ public IActionResult Test(DateTime date) { } }
DateTime dt = DateTime.ParseExact(dateString, "ddMMyyyy", CultureInfo.InvariantCulture); dt.ToString("yyyyMMdd");
As per https://stackoverflow.com/a/3477821/2914174