Solved

convert time EST to CST

Posted on 2006-06-14
2
10,554 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
export sql results to csv 6 36
2016 SQL Licensing 7 41
create an aggregate function 9 36
SQL invalid column name 5 13
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

810 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