Actually, the even correcter way of adding 7 hours to a datetime
is to use DATEADD
:
select getdate() as dt into #t1
select dt, dateadd(hh, 7, dt) as dt_new from #t1
gives
dt dt_new
----------------------- -----------------------
2010-10-25 13:16:35.067 2010-10-25 20:16:35.067
AakashM
2010-10-25 12:16:54