Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

convert time EST to CST

Posted on 2006-06-14
2
Medium Priority
?
10,722 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 70

Accepted Solution

by:
Scott Pletcher earned 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

782 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