Link to home
Start Free TrialLog in
Avatar of jonjhess
jonjhess

asked on

Difference in minutes between two dates

Let say i have a Date Variable declared as

CurrentTime as date

and i have string populated with this

oldtime=now

how can i check to see if the difference in minutes bewtween old time and current time is more than 30 minutes. i tried saying

if currenttime-cdate(oldtime)<30 then
...
but of course that was wrong...

thankyou
Jon Hess
Avatar of jonjhess
jonjhess

ASKER

Well that was full of errors.. it should be > but i'm sure that you see what i mean. i just need to find the difference between two times in minutes when one time is in a date data type and the other in a string.
ASKER CERTIFIED SOLUTION
Avatar of ballpc
ballpc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thankyou