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
![](https://utfs.io/f/0f67a93f-8027-4557-b45e-4c604f615f21-4pl4mu.png)
6 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I did:
using System.Assembly;
but it won't work
![](https://utfs.io/f/99945694-96df-4b4c-908a-30bef5e44c7a-4pl4mu.png)
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I can't find any statement like this online.
all my other annotations are working fine
Install-Package System.Runtime -Version 4.3.1
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View