Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Format

Author  Topic 

sqlfresher2k7
Aged Yak Warrior

623 Posts

Posted - 2011-04-19 : 13:09:58
I want to return the date in the below format..
not the timestamp with 2011-04-19 18:22:00.000

2011-04-19 00:00:00.000

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-04-19 : 13:11:15
SELECT DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0)
Go to Top of Page
   

- Advertisement -