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)
 retrieve time among getdate()

Author  Topic 

Exir
Posting Yak Master

151 Posts

Posted - 2009-10-17 : 03:50:31
Hi
How can i retrieve the time among getdate() ?
thank you

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-10-17 : 04:17:58
[code]
select getdate() - dateadd(day, datediff(day, 0, getdate()), 0)
[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -