We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

problem with DateAdd method

Thread ID:





60484 May 7,2007 06:46 AM UTC May 7,2007 10:41 AM UTC ASP.NET Web Forms (Classic) 1
Tags: FAQ
Asked On May 7, 2007 06:46 AM UTC

Hi i need to add minutes to the current time and i have written the following code. But this is not working. Where is the mistake? Please help

Dim exp_time as datetime

Dim IntervalType as DateInterval




DateAdd(IntervalType, delay, newtime)

Poornima Joy Balan [Syncfusion]
Replied On May 7, 2007 10:41 AM UTC


Here is the code of a example. I hope it will help it out.

Dim exp_time, newtime As DateTime
Dim delay As Double
Dim IntervalType As DateInterval
IntervalType = DateInterval.Minute
exp_time = DateTime.Now()
delay = 7
DateAdd(IntervalType, delay, exp_time)

Please let us know if you have any further queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon