select convert(date, getdate())
DECLARE @datetime datetime SELECT @datetime = GETDATE() SELECT RIGHT('0'+CAST(DATEPART(hour, @datetime) as varchar(2)),2) + ':' + RIGHT('0'+CAST(DATEPART(minute, @datetime)as varchar(2)),2)