GETUTCDATE()
select cast(Table.date +' ' +(Select HourValue from table2 where table2.Hour = Table.Hour) + + ':' + (Select MinuteValue from table3 where table3.Minute = Table.Minute) as datetime) as Timee from Table
SELECT DATEADD(day, DATEDIFF(day, '19000101', DatePart), CAST(TimePart AS DATETIME2(7))) As [DateAndTime] FROM YourTable ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)