We help IT Professionals succeed at work.

Datetime

VBdotnet2005
VBdotnet2005 asked
on
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?
Comment
Watch Question

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)
Top Expert 2008
Commented:
you can also use this

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

Explore More ContentExplore courses, solutions, and other research materials related to this topic.