How can I get the time for a given datetime value?
datetime
I have a datetime in database like this:
2010-09-06 17:07:28.170
and want only the time portion:
17:07:28.170
Is there a function for that or something?
Assuming the title of your question is correct and you want the time:
SELECT CONVERT(char,GETDATE(),14)