Click to See Complete Forum and Search --> : Date and Time Difference


asb050
June 23rd, 2000, 11:41 AM
Does any body Know the API or some other alternative in VB to calculate the differnce between two system dates including time.Please Help ..

adcomp
June 23rd, 2000, 01:01 PM
In Visual Basic, the command is

variable=DateDiff("?",firstdate,seconddate)

I hope this help

adcomp
Puerto Rico

asb050
June 23rd, 2000, 01:07 PM
Actually I am Begginnerin VB , Thanks for help ..Let me Try ...

asb050
June 23rd, 2000, 01:27 PM
variable=DateDiff("?",firstdate,seconddate)
Do i have to use something in place of "?" or just put in my field names in place of firstdate and seconddate and any Variable name .