Here is the basic way on how to subtract the minutes elapsed on the given time.
for example i have a time 12:00 PM and 1:00 PM so we can solved the elapsed time by
using DateDiff function, so supposedly the answer is 60 mins. so enough words, the code
will look like this:
DateDiff("n", "12:00 PM", "1:00 PM")
the "n" there is represent the minutes value its similar on how to get the day elapsed that
represents by "d":
Note: if you doing this procedure you must place your subtrahend first or the lesser value,
otherwise you got a negative answer.
Happy Coding ^_^
The Hardest thing to do is to do Nothing ^_^
for example i have a time 12:00 PM and 1:00 PM so we can solved the elapsed time by
using DateDiff function, so supposedly the answer is 60 mins. so enough words, the code
will look like this:
DateDiff("n", "12:00 PM", "1:00 PM")
the "n" there is represent the minutes value its similar on how to get the day elapsed that
represents by "d":
Note: if you doing this procedure you must place your subtrahend first or the lesser value,
otherwise you got a negative answer.
Happy Coding ^_^
The Hardest thing to do is to do Nothing ^_^
Tags:
VB6 Functions,
Visual Basic 6.0
Leave a comment