System.DateTimeOnly
System.DateTimeOnly copied to clipboard
RestSharp Json format as YYYY-MM-DD / HH:mm:ss
We are using a combination of DateOnly and RestSharp for our API environment.
When serializing the DateOnly object in .Net Framework it comes out as { "Year": 2024, "Month": 9, "Day": 2........}
Is there anyway to get it to serialize as "YYYY-MM-DD"?