Solved

convert time EST to CST

Posted on 2006-06-14
2
10,583 Views
Last Modified: 2008-02-01
Hi,

Please kindly assist how can we convert on runtime from EST to CST?

select convert(EST,CST,DTStart) from MyTable



Thanks.
0
Comment
Question by:RyanBank
2 Comments
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 500 total points
ID: 16904305
Just subtract one hour:

SELECT DATEADD(HOUR, -1, DTStart) AS [CST]
0
 

Author Comment

by:RyanBank
ID: 16904497
thanks!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL convert varchar to INT 17 31
Need help with a query 3 36
SQL Server Resume 5 44
Connect remotely to SQL Server DB without TCP/IP enabled? 2 28
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

713 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