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)
 remove time

Author  Topic 

magmo
Aged Yak Warrior

558 Posts

Posted - 2008-06-14 : 08:33:50
How can I remove the time part from a datetime column when making a select statement?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-14 : 10:31:40
SELECT DATEDIFF(DAY, DATEADD(DAY, '19000101', YourDateTimeVulue), '19000101')



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

magmo
Aged Yak Warrior

558 Posts

Posted - 2008-06-14 : 11:44:56
Great, Thanks a lot Peso!
Go to Top of Page
   

- Advertisement -