|
Home > Archive > IIS ASP > March 2006 > Return Server Time + two hours?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Return Server Time + two hours?
|
|
|
| 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!!!
| |
| Bob Barrows [MVP] 2006-03-15, 5: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.
| |
|
| 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.
>
>
| |
| Larry Bud 2006-03-16, 5: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?
|
|
|
|
|