Solved

How could I convert from GMT to british summer

Posted on 2008-10-14
2
354 Views
Last Modified: 2012-05-05
I am looking to convert times that are in GMT to british summer,

How would i do this?
Thanks
0
Comment
Question by:meteorelec
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
ID: 22713107
Assuming your server is set to that time, you can calculate time local to the server using this method.


dateadd(n, datediff(n, getutcdate(),getdate()), YourDateField

The problem with this approach is that if your SQL server is in a different time zone than your front end displaying it, the date will be local to the SQL server.
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22713112
forgot closing )


select dateadd(n, datediff(n, getutcdate(),getdate()), YourDateField) from YourTable
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question