[Webinar] Streamline your web hosting managementRegister Today



Posted on 2008-01-27
Medium Priority
Last Modified: 2011-04-14
I have a small  VB app that processes emails. It runs every 15 mins. I want to create a lable and put the time it will run. For example, right now it is  10:00 pm, I want a lable to says, Next time it starts at 10:15 pm. Can I use Timespan?
Question by:VBdotnet2005

Accepted Solution

realjordanna earned 300 total points
ID: 20757185
You don't need to do, the DateTime object has an Add method that you an use.

Something like this
Dim newTime As DateTime = DateTime.Now .AddMinutes (15.0)
LVL 26

Assisted Solution

ee_rlee earned 200 total points
ID: 20757260
you can also use this

NewTime = DateAdd (DateInterval.Minute,15,Now)

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

607 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