2
I am creating a database and in it has a field that receives a date, I would like it to appear only the date. If I use the type datetime
comes with the time too. And in SQL Server you have the type option date
, but when it comes to doing it in C# there’s no such thing, there’s only datetime
.
How can I remove the time in C#?
Or you can use the guy datetime
and remove the time on SQL Server?
Are you using any ORM framework, like Entity?
– Leonardo Buta
I’m using the Entity framework
– Rafael