Does anyone know how can I format a select statement datetime value to only display time in SQL Server?
example:
Table cuatomer id name datetime
You can use the CONVERT function like this:
SELECT CONVERT(varchar, your_datetime, 108)
However, this is 24-hour clock, no AM/PM.