If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Originally posted by Pat Phelan
If you are talking VB6 or earlier, subtract the smaller (start) time from the larger (end) time to get the difference (elapsed).
-PatP
Could we use any inbuilt function like DateDiff to calculate time difference in VB6?
I don't know of any VB 6.0 function that is analagous to DateDiff() in MS-SQL. If youi look at how date/time values are stored in MSDN, you can see that simple subtraction works nicely.