If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Show changed system time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-07, 02:03
Dilruba Dilruba is offline
Registered User
 
Join Date: Nov 2007
Posts: 7
Show changed system time

Want to increase the sytem time:


Code:
Dim currentTime

currentTime = Time()
Suppose, current time is : 12:55:50 AM

If i want to add 20 minutes with current time, then it will be 01:15:50 PM

I want the VbScript code or any useful tutorial link.

Pleas help me
Reply With Quote
  #2 (permalink)  
Old 12-11-07, 04:58
Marvels Marvels is offline
Registered User
 
Join Date: Jul 2003
Location: Amsterdam, Nederland
Posts: 449
Smile Good luck

See www.w3schools.com for all kind of exapmles
posible values are:
yyyy - Year
q - Quarter
m - Month
y - Day of year
d - Day
w - Weekday
ww - Week of year
h - Hour
n - Minute
s - Second
i.e.:

<html>
<body>

<script type="text/vbscript">
document.write(DateAdd("n",30,now()))
</script>

<p>
So Now + 30 Min. You use <b>DateAdd</b> to calculate a dateTime.
</p>
<p>
Syntax for DateAdd: DateAdd(interval,number,date).
</p>

</body>
</html>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On