That's stored in an appropriate database type. What you see in the database has nothing at all to do with your code.
If you want to store only the date, you have to change the datatype in the database to 'date'. Read the documentation on SQL Server for date/time datatypes
here[
^].