© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ problem with DateTime format
C
C# / help
3y ago
Datetime ToString format not being respected
C
C# / help
4y ago
✅ DateOnly.TryParse Vs DateOnly.TryParseExact use cases
C
C# / help
11mo ago