Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert from UTC quick and dirty 1

Status
Not open for further replies.

mlocurci

MIS
Oct 17, 2001
210
0
0
US
I need a one time fix so that I can have a query to look at the timestamp in a table that is UTC and adjust it for EST (-5). I am somewhat perplexed and know this should be VERY easy, but I am confused. Help Please!
 
You can use negative numbers with DateAdd.
 
Understood, but the data is static in the table.

I ideally I want a field in my query that says

EST_TimeStamp:[CaseAdd]-5
 
I had visualized:

SELECT t.CDate, DateAdd("h",-5,t.[CDate]) AS Minus5h
FROM t
 
Still can't get it. I really just want to recalculate the date by 5 houts in the past. I am just stuck with how to do it.
 
Ereka! I see the error of my ways

DateAdd("h",-5,[Case_Open_DT])
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top