Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
ladiaocb
Yak Posting Veteran
57 Posts |
Posted - 2008-10-14 : 12:55:29
|
I have a timestamp column that is in GMT:id-------datetime1--------9/22/08 17:562--------9/16/08 21:253--------9/16/08 16:19I would like to convert this time into PST (GMT+8hrs).I know its something really easy I just can't remember it to save my life.Thanks! |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-10-14 : 12:58:13
|
SELECT DATEADD(hh,8,datetime) AS datetimeinpst FROM Table |
|
|
ladiaocb
Yak Posting Veteran
57 Posts |
Posted - 2008-10-14 : 13:02:05
|
I knew it was that easy. Thanks much!! |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-10-14 : 13:06:43
|
quote: Originally posted by ladiaocb I knew it was that easy. Thanks much!!
you're welcome |
|
|
|
|
|