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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

problem with DateAdd method

Thread ID:

Created:

Updated:

Platform:

Replies:

60484 May 7,2007 06:46 AM UTC May 7,2007 10:41 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: FAQ
wrkrishna
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

IntervalType=DateInterval.Minute

exp_time=current

newtime=CDate(exp_time)

DateAdd(IntervalType, delay, newtime)



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

Hello,

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.

Thanks,
Poornima


CONFIRMATION

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.

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

;