A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

UTC Time zone and Now() function



 
 
Thread Tools Display Modes
  #1  
Old February 13th, 2007, 03:06 PM posted to microsoft.public.access.queries
Tech Geek 1234
external usenet poster
 
Posts: 13
Default UTC Time zone and Now() function

I have a database in which all date and time fields will be entered in UTC
time. I need a query to give me records from the past 30 days. I am
currently using "Now()-30" to give me this information. However, it's off by
5 hours because I'm in EST zone (or is it 4 now?). In any case, I need to
find a way to use UTC/Greenwich.

I have several queries, not just the past 30 days, but also past 24 hours
and 90 days. I have seen the "GetSystemTime" function in other postings, and
will play around with that. However, I am unsure of how to apply that in a
set of queries instead of a form. Perhaps I put it in my main form, and then
pull that as a parameter when running the query?

Any thoughts are appreciated. I need to find a way to pull the records in
an accurate time frame, and being off 4-5 hours is not acceptable in this
scenario.

Thanks!
  #2  
Old February 13th, 2007, 03:26 PM posted to microsoft.public.access.queries
raskew via AccessMonster.com
external usenet poster
 
Posts: 370
Default UTC Time zone and Now() function

Hi -
Look here.
http://www.accessmonster.com/Uwe/For...5c22c6b4055uwe


Bob

Tech Geek 1234 wrote:
I have a database in which all date and time fields will be entered in UTC
time. I need a query to give me records from the past 30 days. I am
currently using "Now()-30" to give me this information. However, it's off by
5 hours because I'm in EST zone (or is it 4 now?). In any case, I need to
find a way to use UTC/Greenwich.

I have several queries, not just the past 30 days, but also past 24 hours
and 90 days. I have seen the "GetSystemTime" function in other postings, and
will play around with that. However, I am unsure of how to apply that in a
set of queries instead of a form. Perhaps I put it in my main form, and then
pull that as a parameter when running the query?

Any thoughts are appreciated. I need to find a way to pull the records in
an accurate time frame, and being off 4-5 hours is not acceptable in this
scenario.

Thanks!


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200702/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.