Relative Content

Tag Archive for c#asp.net-core-webapidapper

DateFomrats conversion from DB to API

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