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!!! 3 1314
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]" <re******@NOyahoo.SPAMcom> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl... 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.
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ben Allen |
last post by:
Is there a way (through a variable) to show the date of the last server
reboot i.e. when PHP last started running? As I am trying to show the
server uptime, which of course only works from the last...
|
by: JL |
last post by:
To All,
I have a SQL2KSP3a database(<1GB) running on a 4x3GB physical CPU with
4GB of ram. It is Windows Server 2003 with hyper-threading turn on.
There are ~420 .Net users/cxns (fat client, no...
|
by: B Moor |
last post by:
Host PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM
SQL Server 2000 sp3 (or latest).MS Office 2k3
I have the access 2k3 front end running on server (this may get
changed) and all was well...
|
by: Peter |
last post by:
Hi
I am using DateTime class and TimeOfDay.Hours attribute to return current time. It returns right value on two servers, but in one particular server it does not return right time. I checked that...
|
by: Max |
last post by:
I need to display time as Eastern Time. The problem I'm having is that our server is in Arizona where there is no Daylight Savings
time. That means half the year I need to add 2 hours to the time...
|
by: Jan |
last post by:
Hi:
I have an Access database that's been running (in one form or another)
for a couple of different clients for a few years. Now a new client has
requested that it be implemented with a SQL...
|
by: seb |
last post by:
Hi, this simple server (time protocol) does not respond after a few
hours, even when it is restarted. The behaviour looks to me like a
firewall blocking but I have desabled the firewall.
Using...
|
by: soheb |
last post by:
Hi,
We have two server one in India and canada, and replication is set up in both mysql database, and its working fine. But the problem arises when i insert a query here using now() function in...
|
by: coolestavi007 |
last post by:
Hi All,
I am facing a problem in Ziping any file and then sending it to another server through FTP.
What I have to actually do is to retrive the property of files of any directory and then find...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |