Share via

Nulldate mvccore postgressql

Anonymous
2023-08-31T05:36:56.0766667+00:00

When I am trying to create date it is inserting null date , please suggest

Capturenulldate.JPG

Developer technologies | ASP.NET Core | Other

Answer accepted by question author

Anonymous
2023-09-01T06:52:40.2433333+00:00

Hi @Anonymous

Binding DateOnly is not fully supported in .Net6 https://github.com/dotnet/aspnetcore/issues/34591. For a workaround, you could install this package DateOnlyTimeOnly.AspNet . Then add builder.Services.AddDateOnlyTimeOnlyStringConverters(); to your program.cs

Animation7


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.