get hour from date sql
snippet in sql

get hour from date sql

user769

SELECT DATEPART(HOUR, GETDATE());