In my .net web api I am passing the date in datetime format to the database but it is showing the default value in the database.How can I solve this?

Ishika Garg 10 Reputation points
2023-04-15T18:46:18.43+00:00

I am trying add a table through web api in the database but when I pass the date in datetime format, the value in the table is the default value of datetime.It is not able to set the value I am sending from the web api. What can I do?

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
{count} votes