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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting a Date / Time system variable (Access DB)

Status
Not open for further replies.

ghalewood

Programmer
Nov 13, 2001
42
EU
My ISP hosts my ASP server in the US however any system time variables that I enter are in EST.

i.e I submit an entry in the UK at 11am and it's shows that the record has been input 6am.

I am using the following variable :
DateAdd("d", p_length, Now)

How do I add 5 hours ?

Thanks in advanced

 
take whatever value you get from your statement, put it in a variable called 'theTime' (for this ex anyway), and:

theTime = dateAdd("H",5,theTime)

:)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top