System.DateTimeOnly icon indicating copy to clipboard operation
System.DateTimeOnly copied to clipboard

RestSharp Json format as YYYY-MM-DD / HH:mm:ss

Open deg-mallard opened this issue 5 months ago • 1 comments

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"?

deg-mallard avatar Sep 02 '24 15:09 deg-mallard