Solved

How could I convert from GMT to british summer

Posted on 2008-10-14
2
351 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
  • 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now