Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

I have date in my database with datetime.

02-02-2015 20:15:49

I want to remove the time part from all the records.

Please tell me the way to do that.
Posted

1 solution

Try this-
SELECT convert(varchar, columnName, 105)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900