Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How do I add time in vbscript ?

Posted on 2003-03-24
Medium Priority
Last Modified: 2008-02-01
I have a start time ie 12H00 am to this I would like to add a time period ie 1:30 ( 1 hour 30)

How can I do this ?
Question by:DCPAus
LVL 39

Accepted Solution

appari earned 200 total points
ID: 8194044
can use dateadd function. use datepart as n for adding minutes and h for hours. either convert time to add into minutes or first add hours then add minutes.

adds 90 minutes to current system time

Author Comment

ID: 8194183
Thanks for the rapid and correct response

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question