Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
HiWe've got a field that is causing problems, It's a date time field that looks something like this 30/12/1899 18:00. Can someone advise how I can return just the time in my query results please?Likewise we also have a Date filed thats returning the same. Ideally i'd like to just return the date for this one.
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2010-06-25 : 05:13:09
If you are using SQL 2008, just convert it to time datatypefor 2000 / 2005 to get the date only