I get a Date in an ASP.NET Core Controller like this:
public class MyController:Controller{ public IActionResult Test(DateTime date) { } }
I wanted to format the dates in my responses and I did the following in ConfigureServices method:
services.AddMvc() .AddJsonOptions(options => { options.SerializerSettings.DateFormatString = "mm/dd/yy, ffffdd"; });
Hope that helps.