Get current time without Date

Moudiz picture Moudiz · Dec 16, 2016 · Viewed 14.7k times · Source

How do I get the current time only?

select getdate()

Gives me:

Dec 16 2016  5:41PM

I want this result:

5:41PM

Answer

Siyual picture Siyual · Dec 16, 2016

You can convert the GETDATE() results to a TIME datatype to pull the current time:

Select Convert(Time, GetDate())