[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

ASP simple time offset

Posted on 2004-10-28
3
Medium Priority
?
263 Views
Last Modified: 2012-06-27
Hi.

I have the time offset stored in a variable like +3 or -2
I am dsiplaying the server time with time() like Server Time:5:15:18 PM    
How can I display the offset time like   Your Time:8:15:18 PM  

I am thinking something like <%=time(variableoffsettime)%>

??? Not sure how it goes..

:) Thanks
0
Comment
Question by:Insomniac_PhD
  • 3
3 Comments
 
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12440137
DateAdd('h',variableoffsettime,time) - I'll double check that and post the link for the DateAdd function
0
 
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12440148
0
 
LVL 97

Accepted Solution

by:
Lee W, MVP earned 1000 total points
ID: 12440157
Assuming your variable is "variableoffsettime" and you wanted to display the current date/time with that variable factored in, I'd do it this way:

<% TimeValue(dateadd("h", variableoffsettime, Now())) %>
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
Suggested Courses

590 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