Return Server Time + two hours?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Return Server Time + two hours?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Return Server Time + two hours?  
Bill


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-06 10:54 PM

In ASP, how can I quickly return the server time + 2 hours, using VBScript?

With TIME(), I've found functions for date arithmetic, but I can't find anyt
hing for
time arithmetic.

Thanks!!!









[ Post a follow-up to this message ]



    Re: Return Server Time + two hours?  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-06 10:54 PM

Bill wrote:
> In ASP, how can I quickly return the server time + 2 hours, using
> VBScript?
>
> With TIME(), I've found functions for date arithmetic, but I can't
> find anything for time arithmetic.
>
> Thanks!!!
t=dateadd("hh",2,now())
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.







[ Post a follow-up to this message ]



    Re: Return Server Time + two hours?  
Bill


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-06 10:54 PM

I changed it to:

t=dateadd("hh",2,time())

and it does what I want, THANKS!!!



"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:uDxItzFSGHA.2224@TK2MSFTNGP10.phx.gbl...
> Bill wrote: 
> t=dateadd("hh",2,now())
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>







[ Post a follow-up to this message ]



    Re: Return Server Time + two hours?  
Larry Bud


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:52 PM


Bill wrote:
> I changed it to:
>
> t=dateadd("hh",2,time())
>
> and it does what I want, THANKS!!!
>

You don't need the date?  What happens at 11pm?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register