add time to date sql code example
Example 1: add time to date sql
ADDTIME(NOW(),'5:30:00')
Example 2: sql server add time to date
DECLARE @date DATETIME
SET @date='2010-10-01'
SET @date=@date+'15:00:00'
SELECT @date AS DATETIME
ADDTIME(NOW(),'5:30:00')
DECLARE @date DATETIME
SET @date='2010-10-01'
SET @date=@date+'15:00:00'
SELECT @date AS DATETIME