Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2007
    Posts
    7

    Unanswered: 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

  2. #2
    Join Date
    Jul 2003
    Location
    Amsterdam, Nederland
    Posts
    450

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •