© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
9 replies
shadi

DateTime format into DateOnly

I want my database to only take the day, month & year.
I tried [DataType(DataType.Date)] but it doesn't work.
Using DateOnly won't work either, sqlserver won't take it, I need help please
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ problem with DateTime format
C#CC# / help
3y ago
Datetime ToString format not being respected
C#CC# / help
4y ago
✅ DateOnly.TryParse Vs DateOnly.TryParseExact use cases
C#CC# / help
11mo ago