I am using this setting to serialize a list of objects in dotnet core 2.2:
var settings = new JsonSerializerSettings()
{
DateFormatString = "MM/dd/yyyy h:mm tt"
}
The problem is I want it to serialize and deserialize DateTimes with "MM/dd/yyyy" if DateTimes time equals to 0 and I found no dynamic way to do it in the same list with both values (DateTimes with different times, 0 or not 0)