I am not doing anything special with JSON
serialization or formatting regarding dates.
My DTO property is of type DateTime?
What my API
returns is this:2024-04-24T00:00:00Z
What I see directly on my Database
is this: 2024-04-24 00:00:00.000
How can I update my API so that its return datetime types look like what I see in database.
I am using Dapper
if that matters
What I tried: Using DateTimeOffset?
for type but that returned something like this: 2024-04-24T00:00:00+00:00